delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/12/12:34:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: <vincent DOT penne AT freesbee DOT fr>
To: Mumit Khan <khan AT thor DOT xraylith DOT wisc DOT edu>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: =?ISO-8859-1?Q?R=E9p.:=20?=Re: Building C++ library DLL
Date: Fri, Nov 12 1999 21:03:53 GMT+0330
MIME-Version: 1.0
Message-Id: <19991112173353.LIQT22116.loualaba@localhost>

>
>Date: Fri, 12 Nov 1999 11:12:17 -0600
>Cc: cygwin AT sourceware DOT cygnus DOT com
>
>"vincent penne" <vincent DOT penne AT freesbee DOT fr> writes:
>> ------=_NextPart_000_0004_01BF2CD2.A9E3DBE0
>> Content-Type: text/plain;
>> 	charset="iso-8859-1"
>> Content-Transfer-Encoding: quoted-printable
>> 
>> Hi all,
>> maybe it's not the correct list where to ask for since my problem is GCC =
>> related, but I try anyway.
>> 
>> With Microst Visual C++ it is possible to write something like
>> 
>> class __declspec(dllexport) foo {
>>     static int foo_var;
>> 
>>     void foo_function();
>> }
>> 
>> This will export the function and the static variable without need to =
>> put the __declspec(dllexport) on every line of the class definition.
>> 
>> When using the library, one can write
>> 
>> class __declspec(dllimport) foo {
>>  ...
>> 
>> My question : Is it supposed to work with GCC too ? If not, are there =
>> any plans to implement such a nice feature ? This make porting of C++ =
>> library to windows a lot more easy, since there is a lot less __declspec =
>> directive to put in the header files ...
>
>It should work. Why not just try it out?
>

Actually I tried, but it did not seem to work, and more seriously, when *using* the library (that is when there are some __declspec(dllimport)), the compiler often report internal errors ...

I was trying on a complete library, but to track down the problem I'm now going to try on simple examples ...

Thanks for the help !




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019