Re: linking cygwin built dll with Borland C++Builder

2002-05-23 Thread René Møller Fonseca
Tell the compilers to pack the struct's (if different alignment is the problem). For GCC use: __attribute__((packed)) For Borland compiler use (I think): #pragma pack René Dennis Jarosch wrote: > Hi Rob! > > Robert Collins wrote: > >> Mixing C++ between compilers generally doesn't work. See

RE: linking cygwin built dll with Borland C++Builder

2002-05-23 Thread Robert Collins
> -Original Message- > From: Dennis Jarosch [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 23, 2002 8:46 PM > To: Robert Collins > Cc: [EMAIL PROTECTED] > Subject: Re: linking cygwin built dll with Borland C++Builder > > > Hi Rob! > > Robert Coll

Re: linking cygwin built dll with Borland C++Builder

2002-05-23 Thread Dennis Jarosch
Hi Rob! Robert Collins wrote: > Mixing C++ between compilers generally doesn't work. See the c++-faq > lite for more details. > > Rob Maybe I just misunderstood you, but the lib/dll consists of pure C-code, no C++ involved. Of course my Wrapper uses C++ code, but I am not linking any C++ code

RE: linking cygwin built dll with Borland C++Builder

2002-05-23 Thread Robert Collins
Mixing C++ between compilers generally doesn't work. See the c++-faq lite for more details. Rob > -Original Message- > From: Dennis Jarosch [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 23, 2002 8:33 PM > To: [EMAIL PROTECTED] > Subject: linking cygwin buil

linking cygwin built dll with Borland C++Builder

2002-05-23 Thread Dennis Jarosch
Hi!! I have successfully built a .dll with cygwin (c-Files, using the mingw-compiler) and converted it to a .lib using Borland's implib. Using the .lib in my Borland C++Builder 5 project is no problem at all, however there seem to be alignment problems between the gcc .dll/.lib and the Borlan