Page 1 of 1

[Solved] Weird compilation errors with Hello World

Posted: Wed Feb 04, 2015 9:47 pm
by gtsiam
I've just downloaded CodeLite version 6.1.1 (precompiled version) and I keep getting some weird errors while trying to compile the Hello World program.
When I try, I get this:

Code: Select all

C:\Windows\system32\cmd.exe /c ""C:/Program Files (x86)/CodeLite/MinGW-4.8.1/bin/mingw32-make.exe" -j4 SHELL=cmd.exe  -e -f  Makefile"
"----------Building project:[ pdp_27_B - Debug ]----------"
'C:/Program' ›œ¤ ˜¤˜š¤à¨åœ«˜  ઠœ©à«œ¨ ¡ã 㠜¥à«œ¨ ¡ã œ¤«¦¢ã,
œ¡«œ¢[b][/b]â© £¦ §¨æš¨˜££˜ 㠘¨®œå¦ ›â©£žª œ¤œ¨šœ é¤.
mingw32-make.exe: *** [All] Error 1
Makefile:4: recipe for target 'All' failed
1 errors, 0 warnings
but when I try to compile with Visual C++ 12 compiler (yes, I have Visual studio 2013 installed), I get:

Code: Select all

C:\Windows\system32\cmd.exe /c ""C:/Program Files (x86)/CodeLite/MinGW-4.8.1/bin/mingw32-make.exe" -j4 SHELL=cmd.exe  -e -f  Makefile"
"----------Building project:[ pdp_27_B - Debug ]----------"
'C:/Program' ›œ¤ ˜¤˜š¤à¨åœ«˜  ઠœ©à«œ¨ ¡ã 㠜¥à«œ¨ ¡ã œ¤«¦¢ã,
œ¡«œ¢â© £¦ §¨æš¨˜££˜ 㠘¨®œå¦ ›â©£žª œ¤œ¨šœ é¤.
mingw32-make.exe: *** [All] Error 1
Makefile:4: recipe for target 'All' failed
0 errors, 0 warnings
Note: I've noticed that it still uses mingw32-make.exe, after I switched the compiler.
I switched the compiler by right-clicking my project and going to Settings --> Common Settings --> General --> General Project Settings --> Compiler

Unfortunately, using VC++ 12 doesn't do it either, as the program runs, but prints nothing (except for the "Press Any key to continue..." message)

Because my computer is set to Greek, I believe that the first problem is caused because CodeLite does not support Unicode.As for the second, I can't explain it.

I doubt that many people have encoutered this problem before, but I would be glad to find a solution, as I really need to use MinGW for the project I am working on, and I really like the CodeLite IDE (No I am not willing to change my system language, so don;t even think about it)

I hope someone comes up with something soon. Thanks in advance (I hope).

Re: Weird compilation errors with Hello World

Posted: Wed Feb 04, 2015 9:50 pm
by eranif
Settings->Environment variables

Add this:

Code: Select all

LC_ALL=C
This will change the compiler output to English ;) (but will not affect your computer)


Eran

Re: Weird compilation errors with Hello World

Posted: Wed Feb 04, 2015 9:59 pm
by gtsiam
Thanks for quick the answer eranif, but, unfortunately, that did not do it.

I'm not sure if you thought that this

Code: Select all

C:\Windows\system32\cmd.exe /c ""C:/Program Files (x86)/CodeLite/MinGW-4.8.1/bin/mingw32-make.exe" -j4 SHELL=cmd.exe  -e -f  Makefile"
"----------Building project:[ pdp_27_B - Debug ]----------"
'C:/Program' ›œ¤ ˜¤˜š¤à¨åœ«˜  ઠœ©à«œ¨ ¡ã 㠜¥à«œ¨ ¡ã œ¤«¦¢ã,
œ¡«œ¢â© £¦ §¨æš¨˜££˜ 㠘¨®œå¦ ›â©£žª œ¤œ¨šœ é¤.
mingw32-make.exe: *** [All] Error 1
Makefile:4: recipe for target 'All' failed
1 errors, 0 warnings
is Greek, but I can assure you, it is not.

Does any one have any other solutions?

Re: Weird compilation errors with Hello World

Posted: Wed Feb 04, 2015 10:07 pm
by eranif
Did you try installing MinGW under a folder _without_ spaces?
Something like:
C:\MinGW or C:\Users\YOU\MinGW ?

Eran

Re: Weird compilation errors with Hello World

Posted: Wed Feb 04, 2015 10:12 pm
by gtsiam
Thank you that was the problem :D