Internal compiler error in `rest_of_compilation', at toplev.c :441 5

Mumit Khan khan@NanoTech.Wisc.EDU
Fri Dec 31 13:28:00 GMT 1999


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



More information about the Cygwin mailing list