Hey everyone,
Here'sy problem, i installed lcc win32 some time ago on a Win XP system and now i want to compile something, my source looked oke, as i pressed ctrl-f5 which is compile and execute, if needed update everything the console application pops up and says return code -1 and thats all for the rest nothing else the window closes after i hit a button.
Now if I run the program after compiling it only and run it out of the directory ( thats without using anything that has to do with lcc win32 compiler ) the console application works fine...
Thats my first problem, i tried to check and see if it was one kind of compiler setting but in vain.
If anybody experienced this before please help me out on this one since switching from compiler to windows explorer is not really a fast thing to do
Second problem i encountered just now is that after entering this code ( a simple code since i wanted to check if the previous discussed matter was still there after changing some compiler settings )
With this code the compiler is giving me the error "Entry point("main" function) is not defined. Of couurse its not compiling anything.Code:#include <stdio.h> int main ( ) { printf(" is it working ? \n"); return 0; }
Before i would never have this problem ( i used Borland compiler before ).
I thought the info that ill give you guys next might be usefull to help me, heres what i select when i do "create new project"
Well i hope all this info should do it...DEFINITION OF A NEW PROJECT ( window )
options:single user
type of project: console application
Then i get the question:
Would you like to use the wizard to generate an application skeleton? I then press NO
Then i add a new source file to project
COMPILER SETTINGS
no preprocessor defined
debug support level: generate debug level info
language extension: ANSI-C
warning level: normal
type of output: console application.
Thanks in advance,
Ganglylamb