ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
[boost] defining export pragmas for windows.
by Paul Hamilton other posts by this author
Sep 9 2003 3:48PM messages near this date
RE: [boost] RE: Test tools - BOOST_MESSAGE may not include << endl or << hex << boolalpha | Re: [boost] defining export pragmas for windows.
I have copied REGEX and other boost libs and defined my "DECL" macros 
to place before external synbols like so:

====================

#if defined(_MSVC) && defined(_DLL)
#  define PERSIST_HAS_DLL_RUNTIME
#endif

#if defined(PERSIST_HAS_DLL_RUNTIME)
#   if defined(PERSIST_IN_LIBRARY_SOURCE)
#       define PERSIST_DECL __declspec(dllexport)
#       define PERSIST_BUILD_DLL
#   else
#       define PERSIST_DECL __declspec(dllimport)
#  endif
#endif

#ifndef PERSIST_DECL
#  define PERSIST_DECL
#endif
====================


My problem is that I am building on gcc on windows (which ALSO needs 
_declspecs), so how do I do this:

#if defined(_MSVC) && defined(_DLL)
#  define PERSIST_HAS_DLL_RUNTIME
#endif

In the correct "boost-like" way so that it will correctly detect GCC on 
windows, and building a DLL?

Paul.

---------------------
Paul Hamilton
pHamtec P/L - Software Makers
http://www.phamtec.com/
mailto:paul@[...].com

The information transmitted is intended only for the person or entity 
to which it is addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other use of, or 
taking of any action in reliance upon, this information by persons or 
entities other than the intended recipient is prohibited. If you 
received this in error, please contact the sender and delete the 
material from any computer.
-----------------------------------------------------

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Paul Hamilton
John Maddock

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved