Author Topic: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?  (Read 5862 times)

Offline sizeak

  • Single posting newcomer
  • *
  • Posts: 3
Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
« 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 . 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
« Last Edit: February 08, 2009, 06:24:53 am by sizeak »
shame on us<br />doomed from the start<br />may god have mercy<br />on our dirty little hearts<br />shame on us<br />for all we\'ve done<br />and all we ever were<br />just zeros and ones

Offline sizeak

  • Single posting newcomer
  • *
  • Posts: 3
Re: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
« Reply #1 on: February 09, 2009, 07:10:06 pm »
Anyone?
shame on us<br />doomed from the start<br />may god have mercy<br />on our dirty little hearts<br />shame on us<br />for all we\'ve done<br />and all we ever were<br />just zeros and ones

Online stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
« Reply #2 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
« Last Edit: February 09, 2009, 10:38:09 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sizeak

  • Single posting newcomer
  • *
  • Posts: 3
Re: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
« Reply #3 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.
shame on us<br />doomed from the start<br />may god have mercy<br />on our dirty little hearts<br />shame on us<br />for all we\'ve done<br />and all we ever were<br />just zeros and ones

Online stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
« Reply #4 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

C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline bubo

  • Single posting newcomer
  • *
  • Posts: 4
Re: Help: MinGW upgrade, toolchain set ok, still won't build ?!?!?
« Reply #5 on: March 25, 2009, 12:30:21 pm »
try to install mingw to dir without spaces (e.g. C:\Mingw)