compilation error

21 views
Skip to first unread message

hakeemsh

unread,
Nov 3, 2009, 4:08:44 PM11/3/09
to jb...@googlegroups.com

Dear All,

I am getting the below error which compiling the program. Please help.

BASIC is the folder name, MYBASIC is the program name.

 

jsh ammu ~ -->BASIC BASIC MYBASIC

MYBASIC

atexit enabled

atexit enabled

atexit: done

atexit: done

cl  /nologo /DWIN32 /MD /W2 /GR /EHsc -c  -ID:\jbase4\4.1\include -DJBC_OPTLEVEL

2 BASIC_0.c failed , command returned a code of 2

jcompile: BASIC_0.j deleted

jcompile: BASIC_0.c deleted

jcompile: Returned an error code of 8

BASIC_0.c

D:\jbase4\4.1\include\winpthread.h(189) : fatal error C1083: Cannot open include

 file: 'time.h': No such file or directory

 ** Unable to compile source MYBASIC **

pat

unread,
Nov 3, 2009, 5:11:26 PM11/3/09
to jBASE
You need to locate the appropriate Microsoft 'time.h' include file
( on your system ) and 'include' the directory path to, the directory
containing the 'time.h' file, in the Windows 'INCLUDE' environment
variable

Pat.

Jim Idle

unread,
Nov 3, 2009, 6:14:20 PM11/3/09
to jb...@googlegroups.com

Please do not double post! Your message will not be sent immediately because it must be vetted.

 

Jim

Jim Idle

unread,
Nov 3, 2009, 6:22:00 PM11/3/09
to jb...@googlegroups.com

I guess my constant requests for people to read the posting guidelines and post with a complete set of information just go unread. Please start doing this everyone!!!

 

So, you don’t say what operating system, what version of the C compiler you have installed, whether you have searched the archives to see that this is answered 47 times already and so on.

 

Basically this means that you either didn’t install visual Studio or the Windows SDK, or did it after you installed jBASE, or that you installed a nice spanking new version of the Windows SDK, which jBASE 4.1 does not pick up.

 

What has happened is that the environment variables that are set up for command line use by Visual Studio or other install are not set up correctly. You will have to install them manually. Find the vcvars32.bat file, run it at a command prompt, note what environment variables it sets up, then set them manually in your user or probably better, System environment variables. You can also start a shell easily using the shortcuts provided by either Visual Studio or the Windows SDK.

 

A quick search using Markmail, the details for which I posted only yesterday, will show what those variables are and much more:

 

http://jbase.markmail.org/search/?q=vcvars32#query:vcvars32+page:1+mid:hhgauww3hae6os2u+state:results

 

In this case you find an answer from someone who is obviously both very clever and very handsome:

 

http://markmail.org/message/hhgauww3hae6os2u

 

 

Jim

Reply all
Reply to author
Forward
0 new messages