This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Building C++ library DLL


> Steve Jorgensen wrote:

> I'm not sure if this happens for C++, because this only happened
> for me, but I found that if things were exported more than once
> from the library, the extra compiler directives for DLL's caused
> the CD compiler (gcc 2.90?) to barf, so you might check to see
> you're class isn't getting exported more than once.

I think this is more complicated. I also get this error
Internal compiler error, output_operand_lossage `invalid expression
 as operand'
when importing classes.

Using the save-temps flag I have not found any duplicate exports/imports in my code using mingw32 gcc 2.95.1.
I seem to get it on 'small' classes.
But I must admit, I have not done much testing on it.

Perhaps it also is worth while to check message
http://sourceware.cygnus.com/ml/cygwin/1999-10/msg00539.html
in which a small test case is provided.

Regards,
Harm-Jan Zwinderman




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]