Boost logo

Boost Users :

From: jadooo (vnair_at_[hidden])
Date: 2008-05-14 12:05:08


Hi,

I am trying to port my linux application which used the Boost library to
windows using cygwin.

When i tried to compile I am getting the following errors

../Thread/pasync.cxx:1: warning: -fPIC ignored for target (all code is
position independent)
../Thread/patomic.cxx:1: warning: -fPIC ignored for target (all code is
position independent)
../Thread/pmsgq.cxx:1: warning: -fPIC ignored for target (all code is
position independent)
../Thread/pmtxtable.cxx:1: warning: -fPIC ignored for target (all code is
position independent)
../Thread/prwlock.cxx:1: warning: -fPIC ignored for target (all code is
position independent)
../Thread/psemaphore.cxx:1: warning: -fPIC ignored for target (all code is
position independent)
../Thread/pthread.cxx:1: warning: -fPIC ignored for target (all code is
position independent)
../../boost_1_33_1/boost/shared_ptr.hpp: In member function `T*
boost::shared_ptr<T>::operator->() const [with T = LCEllaLogSource]':
../include/Shutdown.h:263: instantiated from here
../../boost_1_33_1/boost/shared_ptr.hpp:253: error: `assert' undeclared
(first use this function)
../../boost_1_33_1/boost/shared_ptr.hpp:253: error: (Each undeclared
identifier is reported only once for each function it appears in.)
../../boost_1_33_1/boost/shared_ptr.hpp: In member function `T*
boost::shared_ptr<T>::operator->() const [with T =
linx::LCShutdownObserver]':
../include/SubjectObserver.h:344: instantiated from `void
GenericSubject<T1, T2>::Notify(T2&) [with T1 = linx::LCShutdownObserver, T2
= linx::LCShutdownMessage]'
../include/Shutdown.h:176: instantiated from here
../../boost_1_33_1/boost/shared_ptr.hpp:253: error: `assert' undeclared
(first use this function)
../../boost_1_33_1/boost/shared_ptr.hpp: In member function `T*
boost::shared_ptr<T>::operator->() const [with T =
LCLogHandler<logging::LogType>]':
../include/LoggerClasses.h:274: instantiated from `bool
LCLogSource<T>::SendLogMessage(T, LCLogMessage&) [with T =
logging::LogType]'
../include/Shutdown.h:263: instantiated from here
../../boost_1_33_1/boost/shared_ptr.hpp:253: error: `assert' undeclared
(first use this function)
../../boost_1_33_1/boost/shared_ptr.hpp: In member function `T*
boost::shared_ptr<T>::operator->() const [with T = LCLogObserver]':
../include/SubjectObserver.h:344: instantiated from `void
GenericSubject<T1, T2>::Notify(T2&) [with T1 = LCLogObserver, T2 =
LCLogMessage]'
../include/LoggerClasses.h:275: instantiated from `bool
LCLogSource<T>::SendLogMessage(T, LCLogMessage&) [with T =
logging::LogType]'
../include/Shutdown.h:263: instantiated from here
../../boost_1_33_1/boost/shared_ptr.hpp:253: error: `assert' undeclared
(first use this function)
make: *** [Thread/pthread.o] Error 1

I am using boost provided with cygwin that is boost_1_33_1 and GCC which is
3.4.4.

I have build the same application in my Ubuntu machine where GCC is 4.1.3.

I am trying to upgrade GCC to some latest versions, but as of now I have not
yet succeeded.

Just wanted to know if it is really a problem with the compiler or it is
some other problem

It's being 2 days now I am looking into this issue, any help wil be highly
appreciable..

With regards

-- 
View this message in context: http://www.nabble.com/Compile-errors-in-Boost-files%2C-suspect-GCC-version-problem-tp17231391p17231391.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net