News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

codeblocks mingw linker the Static library that make in VC

Started by lfjking, February 07, 2017, 07:09:35 AM

Previous topic - Next topic

lfjking

Now  the Other man have a DLL (a.dll) that make in VC
so, I  use VC  write a  Static library  (a.lib) to  linke the DLL
a.lib have one Fun:

extern "C" int Init(char*);

now , the codeblocks linker a.lib have the question:

mylib.cpp: undefined reference to `Init'

but, I look for the a.lib with the VS Cmd dumpbin /linkermember , it can look up Init Fun.
there the question ?
It took me 3 days long........

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

lfjking

question?
the title !
yes, this is a obscure question....
I  want to know, how to linker the  vc dll with codeblocks mingw

Can  you give me some key points? thanks!

cacb

This isn't a codeblocks question. It is a question of how to link code with different compilers.

In short I don't think you can link a VC export library in mingw. Instead look up LoadLibrary/GetProcAddress.

lfjking

Thanks for help,  may be  this is the Perfect answer

I thought codeblock would have a function to generate a boot library dll.a to solve this problem。

may be We can  do this,

But my skill is not enough......

thanks again ;D ;D ;D ;D


lfjking