Code::Blocks Forums

User forums => Help => Topic started by: sizeak on February 08, 2009, 06:17:14 am

Title: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
Post by: sizeak on February 08, 2009, 06:17:14 am
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 (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
Title: Re: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
Post by: sizeak on February 09, 2009, 07:10:06 pm
Anyone?
Title: Re: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
Post by: stahta01 on February 09, 2009, 10:34:59 pm
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
Title: Re: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
Post by: 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.
Title: Re: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
Post by: stahta01 on February 10, 2009, 05:30:56 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.

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

Title: Re: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
Post by: bubo on March 25, 2009, 12:30:21 pm
try to install mingw to dir without spaces (e.g. C:\Mingw)