From: ert AT cit DOT org DOT by (Andrew Lipnitsky) Subject: Re: Did you succeed in linking cygnus to VC++? 29 Jan 1999 23:27:03 -0800 Message-ID: <36B1DA07.87CFA725.cygnus.gnu-win32@cit.org.by> References: <001201bc0cd0$59b3fcb0$11247aa3 AT sdf5_l1117 DOT tatainfotech DOT co DOT in> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit To: "S. Krishnaprasad" , gnu-win32 AT cygnus DOT com, pakkio AT dianos DOT it "S. Krishnaprasad" wrote: > I tried the solution from Mumit Khan and of Andrew Lipnitsky > but even though it created the Dll for me with the import library > and the def file i am not able to use it. ----- > > The application tried to reference memory (xxxxxxxxx) and > memory at location (yyyyyyyyyyy) could not be written or something > and the application exits. To avoid it try produce import library by LIB.exe utility program from VC6 instead of dllwrap. > > -----Original Message----- > From: pakkio AT dianos DOT it > To: s DOT krishnaprasad AT tatainfotech DOT com > Date: Thursday, January 28, 1999 5:39 AM > Subject: Did you succeed in linking cygnus to VC++? > > >working: at linking it says something like unresolved external symbol xxxx > >and the game is over. > > You can use dll only in C language (not C++) because name mangling is different in VC and GCC. That is your dll must be compiled with gcc (or your export function must be defined as extern "C" ). And so in your VC application definition of that functions looks something like: extern "C" __declspec(dllimport) void __cdecl my_function_from_dll(); > > > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request AT cygnus DOT com" with one line of text: "help". - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".