|
error: unrecognized command line option '-static-libstdc++' |
Xenowar
Member #12,630
March 2011
|
Hello folks, http://wiki.allegro.cc/index.php?title=Windows_Vista,_Code::Blocks_10.05_and_Allegro_5 and downloaded the 5.0.8 version for MinGW 4.7.0. Linking all the relevant mingw32-g++.exe: error: unrecognized command line option '-static-libstdc++' Anyone knows what's up with that and how to fix it? |
Edgar Reynaldo
Major Reynaldo
May 2007
|
I dunno. Maybe they changed it again. -static-libstdc++ works fine for me on MinGW 4.5.0. :shrug: My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
pkrcel
Member #14,001
February 2012
|
C::B comes bundled with TDM-GCC 4.7.1, which has some peculiar differences with vanilla gcc 4.7.0, namely the way it handles statc and dynaminc c-lib linking. TDM-GCC 4.7.1 defaults to static linking. It is unlikely that Google shares your distaste for capitalism. - Derezo |
Xenowar
Member #12,630
March 2011
|
Hmm, alright, I removed the static parts -static-libgcc -static-libstdc++ and now I get this error: ld.exe cannot find -lgcc_eh |
pkrcel
Member #14,001
February 2012
|
Same as before I think, in my TDM-GCC 4.7.1 setup I do not have those three options at all and it compiles and run okay. EDIT: only for allegro dynamic builds thou, I haven't bothered to link all the libraries other than the C runtime, 'cause it's needed only for a quick hack for another thread here. It is unlikely that Google shares your distaste for capitalism. - Derezo |
Xenowar
Member #12,630
March 2011
|
I kinda fixed it. I just threw out the MinGW 4.7.1 and used 4.5.0 instead and |
pkrcel
Member #14,001
February 2012
|
Well, binaries for 4.7.0 DO work with TDM-GCC 4.7.1, I personally tested it (to a very limited extent....so you just took the longer route to me. It is unlikely that Google shares your distaste for capitalism. - Derezo |
|