I have been using the Jove editor by Jonathan Payne for many years.
If You are not familiar with Jove - Jove stands for Jonathans own
version of EMACS. I love using it. In the 80s I had my own version
of jove with a lot of my own personal additions. I used this until
1996 when I lost all of my Jove source code when I returned to the
USA from Mexico. Recently I obtained a copy of it, and I have been
using the executable on Windows, but I would like to add back some
of my own features. All of the code compiled as expected without
error except for jove.c and scandir.c. These call in the headers file
windows.h, this in turn calls in basetsd.h and error are generated:
grace@LOWTHUNDER /c/jove/jovedoss
$ nmake makefile.msc
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Making paths.h
cl -AL -J -Zp -G0 -nologo -Ox -D_NDEBUG /c jove.c scandir.c
cl : Command line warning D9002 : ignoring unknown option '-AL'
cl : Command line warning D9002 : ignoring unknown option '-G0'
jove.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(422) :
error C2628: 'LONG_PTR' followed by 'int' is illegal (did you forget
a ';'?)
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(422) :
error C2059: syntax error : ','
scandir.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(422) :
error C2628: 'LONG_PTR' followed by 'int' is illegal (did you forget
a ';'?)
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(422) :
error C2059: syntax error : ','
Generating Code...
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
It does not look like the problem lies in the Jove C sources, but
more with the environment I have looked at the include files (could
it have something to do with environmental variables), but it is not
obvious to me. I am using a mingw32 environment with windows 7 on a
64 bit AMD phenom processor. Before I finish pulling out all of my
hair I thought that someone more experianced with visual studio cl
compiler using nmake in the mingw32 might find the problem obvious
and quickly spot what it is that I am doing wrong.
Any suggestions would be greatly appreciated. Thank You in advance for
Any help that You may have to offer.
73
-Grace
NNNN
z
ThomsonGB
0
Light Poster
Recommended Answers
Jump to PostHave you tried using a more modern version of visual studio compiler? Like VC++ 2010 Express (free) or just-released VC++ 2012 Express (also free)? Neither of those versions of vc++ need or use the windows SDK.
Jump to Postyou need to run vcvars32.bat found in the compiler's bin folder, similar to this (for vc++ 2012):
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin
If you are using Windows 7 then I suspect you are trying to use an outdated SDK. Get this one. But in most cases …
Jump to Postvcvars32.bat doesn't know anything about the folder(s) where the SDK is installed. you will have to create another batch file that adds those paths to the environment variables or use /I<path> on the cl command line.
If you zip up the project files and email or PM them to me …
All 9 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
ThomsonGB
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
ThomsonGB
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
ThomsonGB
0
Light Poster
BobS0327
24
Junior Poster in Training
ThomsonGB
0
Light Poster
ThomsonGB
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.