User forums > Help
Big question!!
stahta01:
I am guessing that you do not have the compiler configuration right.
Please verify the path to GCC.EXE is set correctly in the compiler configuration.
Tim S
Seronis:
I fail to reproduce your error also. The steps I perform was:
1. open codeblocks
2. file -> new -> file...
3. C/C++ Source File
4. save file as 'main.c' on my desktop
5. copy/paste code exactly as you stated
--- Code: ---#include <stdio.h>
int main ()
{
printf("hello world ")
return 0;
}
--- End code ---
6. click Build
Build Log tab displays:
--- Code: ---Compiling: C:\Documents and Settings\Owner\Desktop\main.c
C:\Documents and Settings\Owner\Desktop\main.c: In function `int main()':
C:\Documents and Settings\Owner\Desktop\main.c:5: error: expected `;' before "return"
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
--- End code ---
Build Messages tab displays:
--- Code: ---C:\Documents and Settings\Owner\Desktop\main.c In function `int main()':
C:\Documents and Settings\Owner\Desktop\main.c 5 error: expected `;' before "return"
=== Build finished: 1 errors, 0 warnings ===
--- End code ---
EXACT same results if i go ahead and make a proper project first instead of compiling an orphan file.
Jenna:
If I remember right from an other post, you are using C::B 8.02 after upgrading from an older version (svn41xx I guess).
Have you tried to completely delete the old installation (or move it away) and delete (or move) the codeblocks settings in "c:\Documents and Settings\<username>\Apllication data\codeblocks" ?
Before you do so you should make a backup of "default.conf" and perhaps other .ini-files (cbKeyBinder...) and of course before deleting the whole directory you have to first uninstall C::B 8.02 to not mess up the installer.
JGM:
--- Quote from: kecho on March 19, 2008, 06:13:16 pm ---But i don't get the same error! and that's the whole point of this topic, and no the answer is not "you should have the same error".
--- End quote ---
Try cleaning the project object files by Build->Clean, then Build (Ctrl-F9) your code on debug target, and look the build messages and build log. Some times that kind of problem happened to me and is difficult to reproduce. It's if something is not updating on your compilation, but switching to debug target and cleaning the object files point me to the line where was the error.
gd_on:
First : is your djgpp compiler is fully supported by C::B ? Not sure ! It's not in the wiki list.
Secondly : try a search in the forum with djgpp as keyword. It seems that other guys have the same problem with this compiler (may be solved !)
gd_on
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version