User forums > Using Code::Blocks
Visual C++ 2005 Express linker issue
stahta01:
Why are you using this option; you are telling it NOT to use the normal C Library; why do you think you are getting C Library linking errors. They are likely related. Edit: This is an educated guess from a non Visual C/C++ programmer.
--- Code: ---/NODEFAULTLIB:msvcrt
--- End code ---
Tim S.
bala_48225:
--- Code: ---/NODEFAULTLIB:msvcrt
--- End code ---
is required because msvcrt conflicts with some other libraries.
Ok, I got it to work by using the suggestion by Alpha to try the code:blocks regular sdl project template with the few necessary modifications (no sdl.dll, just sdl.lib), then from there once I got a program running I added the other sdl add-on libraries and everything worked fine. Thanx for the feedback to both.
oBFusCATed:
Keep in mind that the no default lib is a hack, and mixing libraries from different compilers 2005/2008/2010 (sp-s included) will break sooner or later.
bala_48225:
To Obfuscated: why would the libraries be from different years? :? I would imagine they're all from 2005. Are you suggesting that the best thing is to use the full compiler rather than express version because the hack may be unstable in the long run? Lastly, what does (sp-s) mean?
In general: I was able to get the original project to work by making sure everything was the same in the compiler and debugger options as in the sdl project template version that I modified earlier. :)
oBFusCATed:
I said that if you need to ignore the msvcrt library you have a configuration problem. You're mixing runtime libraries and you'll get some strange problems sooner or later.
You should build your project without this options to be on the safe side.
sp= service packs... they are different and uncompatible, as I hope you know.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version