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........
And the question is?
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!
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.
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
http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs
literally 2 sec of google....
Oh, good idea;
Thanks very much! ;D ;D