Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Message-ID: <20010802232354.69230.qmail@web14502.mail.yahoo.com> Date: Fri, 3 Aug 2001 09:23:54 +1000 (EST) From: =?iso-8859-1?q?Danny=20Smith?= Subject: GCC-3.0, class DLLIMPORT foo, and ld --enable-auto-import. To: cygwin-apps , mingw-dvlpr MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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!