From: Gerhard <hae...@gm...> - 2001-10-05 01:01:29
|
On Thu, Oct 04, 2001 at 04:49:16PM -0400, David J. Hurlburt wrote: > Hello, > > I am trying to link in Ada compiled as a lib into a C++ dll. This is being > done on WINNT under VC++ 6.0. I am getting a link error from libmingw32.a > saying that WinMain@16 is an undefined external symbol. I don't have a > main; it is a dll. I have a DllMain, but this doesn't seem to help. > > Is there a flag for link.exe which will tell libmingw32.a that this is being > utilized as a dll, not a console application? I don't understand you completely. You want to link an Ada static library into a DLL using Visual C++? That sounds very difficult to get right. Never did that myself. I'd recommend that instead you build a DLL with Ada, then use this from the Visual C++ DLL. How to create a DLL with GNAT is described in the GNAT user's guide. Oops. Or are you using Aonix ObjectAda? Sorry, then I know zero about it. HTH, Gerhard -- mail: gerhard <at> bigfoot <dot> de registered Linux user #64239 web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id 86AB43C0 public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0 reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b'))) |