GCC Cygwin C++ DLL linking problem
From: Sam Tiny (spam_at_nospam.com)
Date: 03/16/05
- Next message: Julie: "Re: when to use uint? dis/advantages?"
- Previous message: Mihnea: "Re: Is a const parameter generally optimized to a reference?"
- Next in thread: modemer: "Re: GCC Cygwin C++ DLL linking problem"
- Reply: modemer: "Re: GCC Cygwin C++ DLL linking problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 16 Mar 2005 09:49:12 -0700
I have a Windows LIB/DLL that I need to link my GCC program with. I have
followed all the instructions I could find: using pexports to create .def
file from the .dll and then using dlltool to create a .a library file from
the .def file. I've dumped the symbols from the .a and noticed each function
is appeded with an underscore (_). Note that a dump of the DLL does not have
underscores prefixed to the function names. Also, the .def doesn't have any
underscores prefixed to the function names. I have been completely unable to
link my program when compiled as C++ getting the "undefined reference to"
error for each function in the DLL, but I am able to compile and link as C
code. Any suggestions? Thanks for any help.
- Next message: Julie: "Re: when to use uint? dis/advantages?"
- Previous message: Mihnea: "Re: Is a const parameter generally optimized to a reference?"
- Next in thread: modemer: "Re: GCC Cygwin C++ DLL linking problem"
- Reply: modemer: "Re: GCC Cygwin C++ DLL linking problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|