Building C++ library DLL
vincent penne
vincent.penne@freesbee.fr
Thu Nov 11 20:50:00 GMT 1999
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 ...
ÃÂ
More information about the Cygwin
mailing list