[Solved] Weird compilation errors with Hello World

CodeLite installation/troubleshooting forum
gtsiam
CodeLite Curious
Posts: 9
Joined: Mon Feb 02, 2015 11:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

[Solved] Weird compilation errors with Hello World

Post 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).
Last edited by gtsiam on Wed Feb 04, 2015 10:13 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Weird compilation errors with Hello World

Post 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
Make sure you have read the HOW TO POST thread
gtsiam
CodeLite Curious
Posts: 9
Joined: Mon Feb 02, 2015 11:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Weird compilation errors with Hello World

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Weird compilation errors with Hello World

Post by eranif »

Did you try installing MinGW under a folder _without_ spaces?
Something like:
C:\MinGW or C:\Users\YOU\MinGW ?

Eran
Make sure you have read the HOW TO POST thread
gtsiam
CodeLite Curious
Posts: 9
Joined: Mon Feb 02, 2015 11:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Weird compilation errors with Hello World

Post by gtsiam »

Thank you that was the problem :D
Post Reply