Subject: [Boost-bugs] [Boost C++ Libraries] #4670: Revised boost/config/compiler/gcc.hpp causes linker errors for Cygwin WIN32 apps
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-21 22:05:12
#4670: Revised boost/config/compiler/gcc.hpp causes linker errors for Cygwin WIN32
apps
-----------------------------------+----------------------------------------
Reporter: cvclarkeiii@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
Version: Boost 1.44.0 | Severity: Problem
Keywords: |
-----------------------------------+----------------------------------------
A revision to boost/config/compiler/gcc.hpp makes the assumption that
because Cygwin does not define a WIN32 macro, a WIN32 macro will never be
defined when compiling applications for Cygwin. Win32 applications are
supported under Cygwin, and the use of some third party libs (i.e. Agilent
I/O Libraries) requires that a WIN32 macro be defined. This problem
causes linker errors similar to the error below:
scons: done reading SConscript files.
scons: Building targets ...
g++ -o test_serialization.o -c -g -Wall -ansi -mwin32 -mthreads
-I/c/dvlp/boost_1_44_0 test_serialization.cpp
g++ -o test_serialization.exe test_serialization.o
-L/c/dvlp/boost_1_44_0/stage/lib -lboost_serialization -lboost_date_time
-lboost_system
Cannot export
_ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_116guid_initializerI7DerivedEEE12get_instanceEv:
symbol not found
Cannot export
_ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_116guid_initializerI7DerivedEEE20get_mutable_instanceEv:
symbol not found
collect2: ld returned 1 exit status
scons: *** [test_serialization.exe] Error 1
scons: building terminated because of errors.
A patch is attached that fixes this problem
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4670> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC