Linking with inmport libraries

Oct 18, 2012 at 1:18pm
How do I link with import libraries in Code::Blocks with MinGW.
I would have done that in MSVC++ like this: #pragma comments (lib,"winmm32.lib) . But how do I do this in Code::Blocks?

Thanks,
Aceix.
Oct 18, 2012 at 1:27pm
#pragma comments (lib,"winmm32.lib) is a non-standard MS hack job. The real way to link libraries is to tell your linker which libraries you want to link against.

http://www.learncpp.com/cpp-tutorial/a3-using-libraries-with-codeblocks/
Oct 18, 2012 at 1:42pm
Thanks!!!

Aceix.
Topic archived. No new replies allowed.