From: Kuba O. <ku...@ma...> - 2004-02-15 18:47:53
|
On Sunday 15 February 2004 07:34 am, Heiko Gerdau wrote: > On Sunday 15 February 2004 13:15, Luke Dunstan wrote: > > I tried linking something by putting ftd2xx.lib directly on the command > > line and it appeared to work (no errors) but examining the import table > > shows that something is wrong and that it would cause an application to > > crash. I'm not sure why the import library doesn't work with MinGW but > > this *appears* to produce a correct executable: > > > > 1. reimp -d ftd2xx.lib > > 2. Remove the underscore at the beginning of each line in ftd2xx.def > > 3. dlltool -k -d ftd2xx.def -l libftd2xx.a > > 4. Link normally using libftd2xx.a > > I would expect > > dlltool -U -d ftd2xx.def -l libftd2xx.a > > to be necessary in step 3, but I did not try though. I've tried seemingly all combinations and nothing had worked. I resorted to runtime resolution via QLibrary, it wasn't such a big effort. Kuba |