Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <002101bf1fc4$a53a5da0$030110b0@wales.dev.dwl.co.uk> From: "Andreas Damm" To: Subject: dllimport whole classes Date: Tue, 26 Oct 1999 16:13:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 I am using Mumit Khan's cygwin gcc-2.95 update to compile a dll containing c++ classes. Building the dll works fine using __attribute__((dllexport)) (after I updated to Mumit's version to fix the multiple copies of inline functions bug). Unfortunatly, when compiling code that uses those classes, i.e. tagging the class __attribute__((dllimport)) I get: test.cpp:13: Internal compiler error, output_operand_lossage `invalid expression as operand' Here is the source of test.cpp: class __attribute__((dllimport)) FOO { public: virtual void foo(); }; void foo() { FOO f; f.foo(); } It only seems to happen if FOO contains virtual functions, i.e. making FOO::foo non-virtual will work. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com