This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
GCC-3.0, class DLLIMPORT foo, and ld --enable-auto-import.
- To: cygwin-apps <cygwin-apps at cygwin dot com>, mingw-dvlpr <mingw-dvlpr at lists dot sourceforge dot net>
- Subject: GCC-3.0, class DLLIMPORT foo, and ld --enable-auto-import.
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Date: Fri, 3 Aug 2001 09:23:54 +1000 (EST)
Hello
The use of Paul S auto-import feature allows dllimports of C++ classes
with GCC-3.0. The "class __attribute__((dllimport)) foo" construct
causes g++ parser error in Gcc-3.0. With auto-import the attribute may
no longer necessary (time will tell). See attached example, modified
from dllhelpers, which builds and runs with GCC-3.0 and ld
--auto-import.
The build is slow and produces large executables but that is due I
think to the use of templated iostreams.
Danny
_____________________________________________________________________________
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!