Linking with inmport libraries

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.
#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/
Thanks!!!

Aceix.
Topic archived. No new replies allowed.