Author Topic: Linking MSVC static libraries with CodeBlocks MinGW  (Read 6229 times)

Offline PJani

  • Single posting newcomer
  • *
  • Posts: 8
Linking MSVC static libraries with CodeBlocks MinGW
« on: September 18, 2009, 09:37:41 pm »
I have question about, how to link msvc static lib with C::B + MinGW. If is even posible to do.

Any idea how to do it, becouse im trying to link OgreOggSound manager(which has OgreOggSound.lib and OgreOggSound.dll i linked to .lib file) and i keep getting undef references to...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Linking MSVC static libraries with CodeBlocks MinGW
« Reply #1 on: September 19, 2009, 12:11:28 am »
compile the MSVC libraries using c exports works for DLL libraries.
Not sure, what to do for static builds.
Most likely not possible without making an MSVC DLL wrapper using C exports around the static lib.

Tim S.
« Last Edit: September 19, 2009, 12:14:00 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org