User forums > Help

Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?

(1/2) > >>

sizeak:
Hey, I've been using C::B for quite awhile now and I decided it was time to upgrade from RC2 to a nightly. So I uninstalled RC2, downloaded the required dll's and the nightly. Put them under the same path as the RC2 install used to be. I downloaded the newest MinGW install from nuwen.net, since it come's with all the libs I use already set up, link: http://nuwen.net/mingw.html#installation . I then setup the toolchain settings for that install, also C::B auto-detected the compiler. I can compile with it fine from the command line, but when I try to compile from within C::B, It now errors. An example of the errors it throws are:

c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\i686-pc-mingw32\4.3.2-dw2\..\..\..\..\include\c++\4.3.2-dw2\cwchar|164|error: '::swprintf' has not been declared|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\i686-pc-mingw32\4.3.2-dw2\..\..\..\..\include\c++\4.3.2-dw2\cwchar|171|error: '::vswprintf' has not been declared|
||=== Build finished: 2 errors, 0 warnings ===|


Any help would be appreciated

EDIT: I think this is because the above file is located in a different location to what C::B thinks. Its in: C:\Program Files (x86)\CodeBlocks\MinGW\include\c++\4.3.2-dw2
However, I have no idea how to change this in C::B

sizeak:
Anyone?

stahta01:
Looks like an Compiler Error to me; I suggest http://nuwen.net are the people to help with this problem.

Note: It could be user error, but I think the Compiler is more likely assuming you checked your code.
Note: I am assuming you have only one MinGW compiler on your computer; if more than one they can interfere with each other.
 
Tim S

sizeak:
As I stated, I can compile the same code fine via the command line. With the same compiler. And the issue is with the C++ standard libary not my code. For some reason, even with the toolchain setup correctly, C::B won't build even though I can build perfectly fine form the command line.

stahta01:

--- Quote from: sizeak on February 10, 2009, 12:24:06 am ---As I stated, I can compile the same code fine via the command line. With the same compiler. And the issue is with the C++ standard libary not my code. For some reason, even with the toolchain setup correctly, C::B won't build even though I can build perfectly fine form the command line.

--- End quote ---

I suggest turning on FULL Compiler logging and see whats wrong with the C::B command.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S

Navigation

[0] Message Index

[#] Next page

Go to full version