Re: C++ Classes in Shared Libraries
From: Putz Ronald (rputz_at_etm-ag.com)
Date: 09/03/04
- Previous message: James McIninch: "Re: Boot Linux from USB memory stick?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 3 Sep 2004 08:35:19 +0200
Hy!
I am using the following Code for Solaris/Windows:
#if defined (WIN32)
//For Windows
#ifdef MAKEDLL_ReadLibrary
#define DLLEXP_ReadLibrary __declspec(dllexport)
#else
#define DLLEXP_ReadLibrary __declspec(dllimport)
#endif
#elif defined (OS_LINUX) || defined (OS_FREEBSD) || defined (OS_SOLARIS)
//Linux doesnīt need a dllexport or dllimport
#ifdef MAKEDLL_ReadLibrary
#define DLLEXP_ReadLibrary
#else
#define DLLEXP_ReadLibrary
#endif
#endif
#endif
Means you donīt have to do anything to export the classes under Solaris.
"da" <da@hotmail.com> schrieb im Newsbeitrag
news:JffKc.25662$Kz3.2513628@news4.srv.hcvlny.cv.net...
> Are there any problems exporting C++ classes from shared libraries?
Under
> some operating systems, it is necessary to tag exported classes in special
> ways to make them accessible in shared libraries. Are there any such
> constructs necessary under Linux (we're using Redhat 9, with g++).
>
> Thanks,
>
> -- dwa
>
>
- Previous message: James McIninch: "Re: Boot Linux from USB memory stick?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|