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: Internal compiler error in `rest_of_compilation', at toplev.c :441 5


On Fri, 17 Dec 1999, Joost Kraaijeveld wrote:

> I narrowed it down a bit. It seems that compiling an executable with
> __declspec (dllimport) defines for a class is not allowed. See the Bug
> and NoBug version that are attached
> 

Out-of-line definitions for an imported class is not allowed because it
makes no sense. However, it's a bug in gcc since it should issue an error
instead of crashing! I'm working on that.

MSVC will issue a warning and turn the linkage into "dllexport" when it 
sees the definition, which is bogus. It's an error, and ignoring that
can cause hard-to-track-down errors in your code.

Regards,
Mumit



--
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]