I used the a2dll to convert the .a file ( that is OK compiled on Linux platform ) to .dll file . But it did not work and print the followsing message:
$ a2dll libmylib.a -mno-cygwin --target=i386-mingw32
Creating shared library 'mylib.dll'
Linking error, consult file 'ld.err', correct errors, and run
'./a2dll libmylib.a -mno-cygwin --target=i386-mingw32 --relink'
what is the meaning above ?
I have two OS in my PC, one is RedHat9 , the other is Windows2000. In Windows2000, I installed the cygwin as a visual environment . The code of libmylib.a is OK when it was compiled in RedHat . Now, I move them to windows and compile them with the gcc of cygwin in cygwin environment. It's also OK and give me the libmylib.a file, but it can not be recognized and resued by MSVC or MinGW. Therefore, I use the a2dll for converting .However, it doesn't work and give the message above to me.
Can anybody give me some advice?
- Qin An