User forums > Using Code::Blocks

codeblocks mingw linker the Static library that make in VC

(1/2) > >>

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:

--- Code: ---extern "C" int Init(char*);

--- End code ---
now , the codeblocks linker a.lib have the question:

--- Code: ---mylib.cpp: undefined reference to `Init'

--- End code ---
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:
And the question is?

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

Navigation

[0] Message Index

[#] Next page

Go to full version