Undefined Reference errors...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a third-party DLL (with .h file, but without source code) that was
compiled using Borland compiler. The DLL came with a help file which
includes an example 'main' program. The help file states that a .lib file
must be created from the DLL using your respective compiler.. So here is
what I have attempted:

1) created a .def file using Borland's 'impdef' program: impdef DataIO.def
DataIO.dll
2) then created the .lib using 'dlltool' : dlltool --dllname DataIO.dll
--input-def DataIO.def --output-lib DataIO.lib

3) Now, when I try to compile (on windows) the provided example main program
using: g++ -L. main.cpp -lDataIO -o main.exe
I get 'undefined reference' errors to functions that are defined in the
library... Am I missing something or doing something wrong?

Any help would be greatly appreciated!
-- 
View this message in context: http://www.nabble.com/Undefined-Reference-errors...-tp23840969p23840969.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux