User forums > Help

Can't build in Code::Blocks, but can build from command line.

<< < (2/2)

rich_sposato:

--- Quote from: stahta01 on September 07, 2010, 03:43:53 pm ---Have you verified the existence of "cc1plus.exe" in folder CygWin\lib\gcc\i686-pc-cygwin\4.3.4?

Not sure the above applies after rereading your post.

Things that must be done to really test/use multiple GCC installations under windows.
Verify that NO gcc installations are in your system path.
Verify that x:\mingw does not exist for any value of "X"

Open an cmd prompt window.
change directory to folder holding CB project file.
set path to have the Compiler Bin folder first in the list

Try to execution the command used by CB under full compiler logging here.

...

Tim S.

--- End quote ---

Thanks Tim.  Your suggestion worked.  After confirming that changing the PATH variable worked when compiling from a DOS prompt, I then changed the environment variable in Windows settings.  Upon doing that, I restarted Code::Blocks and recompiled the project.  It now compiles without making cryptic error messages.

Yes, the cc1plus.exe is in folder CygWin\lib\gcc\i686-pc-cygwin\4.3.4.  The error message in the original post implies that cc1plus.exe exists and was executed, but can't load a shared object.

Thanks again!

Rich

Navigation

[0] Message Index

[*] Previous page

Go to full version