Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, March 2007
Cannot link Qt program using MinGW (Win 32 Open Source)

Pages: Prev | 1 | 2 | Next

Message 16 in thread

Actualy, you do not need export library for GNU C at all.
If you have some.dll (on Windows) and you need to link your program to it,
you can do:
gcc -d some.dll -o test.exe *.o
and that's it!
But I have no idea how to explain that to qmake...

"David Scriven" <davidwriter@xxxxxxxxx> wrote in message
news:741558.58981.qm@xxxxxxxxxxxxxxxxxxxxxxxxxx
fanda wrote:

>For C libraries, you still can use *.lib files with mingw. This example is
>for libmysql.

>D:\app\MySQL\5.0\lib\opt>\app\MinGW\bin\reimp.exe -d libmysql.lib
>D:\app\MySQL\5.0\lib\opt>\app\MinGW\bin\dlltool.exe -k --input-def
>libmysql.def --dllname libmysql.dll --output-lib libmysql.a

That's precisely what I tried - I downloaded the mingw-utils and tried
reimp  -d nidaq32.lib - it produced no output, whereas
reimp -d pvcam32.lib produced a proper .def file

DS




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
 [ signature omitted ]