-
Linking
Hi,
I'm developing an application on Windows with Visual Studio and Qt 4. Now I'm trying to port the application to MinGW(using Eclipse as IDE). I have changed a lot of code that MS compiler let's do and GNU compiler don't let it.
Now the problem is on linking step. The compiler is getting me a lot of "_imp___" errors that I think that is because the libs that I'm linking are created using MS compiler and the GNU compiler is not able to link them.
Am I right? Is there any solution? The libs are commercial and no source code is avaiable.
Thanks,
-
Re: Linking
did you build qt for mingw?
PS. use [b]reimp[b] tool from mingw bin utils to convert libs to libs which migw support.
-
Re: Linking
Hi,
Yes, I have 2 versions of Qt. One compiled for VS and the other one compiled for MinGW.
The "_imp__" errors refer to the 3rd party libs that I'm using, not to Qt libs.
Thanks,
-
Re: Linking
then use reimp tool for this libs for creating static libs which mingw recognize. they have *.a extension. and then link your app again with these libs.
-
Re: Linking
Hi,
Thanks, I'm taking a look.
-
Re: Linking
Hi,
The reimp tool have created "libOne.a" and "libOne.def". Have I to remove the "libOne.lib" file from the lib dir?
In my PRO file I have added:
LIBS += -L"C:\libs" -llibOne
If I remove the "libOne.lib" file from the libs dir I'm getting this error:
ld.exe: cannot find -llibOne
Thanks,
-
Re: Linking
specify full name of a lib, i.e. ibOne.a
-
Re: Linking