Boost logo

Boost-Build :

From: Jane Lin (jane_at_[hidden])
Date: 2004-09-14 13:13:01


Thanks for replying, Rene!

> > I edited one of the jam files to change -warn to -warnings and
> > commented out nounusedexpr, but then greg_month.o doesn't get built:
> > Error : Nothing to do: no source or object files
> > specified
> >
> > Am I missing something simple here?
>
> Yes, and no. The simple answer is that no one has taken the time to
> write the support for CW on OSX into the build system. Although the
> cw-tools.jam in CVS should be in a better state to add that support, and
> I briefly started to a few months back.

I did take a look at the jam file I edited and saw that it didn't like the way I had commented
out "nonusedexpr", so I fixed that and then it could actually compile but ran into many
redefines and illegal function overloading. For example, the very first file,
greg_month.cpp in the date and time lib:

Error : illegal function overloading
(included from:
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/
MSL_C/MSL_Common/Include/cstdlib:20
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/
MSL_C++/MSL_Common/Include/algorithm:517
/Developer/boost_1_31_0/boost/shared_ptr.hpp:31
/Developer/boost_1_31_0/boost/date_time/gregorian/greg_month.hpp:14
/Developer/boost_1_31_0/libs/date_time/src/gregorian/greg_month.cpp:14)
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/MSL_C/
MSL_MacOS/Include/cstdlib_mach.h line 35 ar *cgetcap(char *, char *, int);
Error : illegal function overloading
(included from:
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/
MSL_C/MSL_Common/Include/cstdlib:20
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/
MSL_C++/MSL_Common/Include/algorithm:517
/Developer/boost_1_31_0/boost/shared_ptr.hpp:31
/Developer/boost_1_31_0/boost/date_time/gregorian/greg_month.hpp:14
/Developer/boost_1_31_0/libs/date_time/src/gregorian/greg_month.cpp:14)
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/MSL_C/
MSL_MacOS/Include/cstdlib_mach.h line 37 getent(char **, char **, char *);
Error : illegal function overloading
(included from:
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/
MSL_C/MSL_Common/Include/cstdlib:20
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/
MSL_C++/MSL_Common/Include/algorithm:517
/Developer/boost_1_31_0/boost/shared_ptr.hpp:31
/Developer/boost_1_31_0/boost/date_time/gregorian/greg_month.hpp:14
/Developer/boost_1_31_0/libs/date_time/src/gregorian/greg_month.cpp:14)
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/MSL_C/
MSL_MacOS/Include/cstdlib_mach.h line 39 int cgetmatch(char *, char *);
Error : illegal function overloading
(included from:
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/
MSL_C/MSL_Common/Include/cstdlib:20
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/
MSL_C++/MSL_Common/Include/algorithm:517
/Developer/boost_1_31_0/boost/shared_ptr.hpp:31
/Developer/boost_1_31_0/boost/date_time/gregorian/greg_month.hpp:14
/Developer/boost_1_31_0/libs/date_time/src/gregorian/greg_month.cpp:14)
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/MSL_C/
MSL_MacOS/Include/cstdlib_mach.h line 41 cgetnum(char *, char *, long *);
Error : illegal function overloading
(included from:
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/
MSL_C/MSL_Common/Include/cstdlib:20
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/
MSL_C++/MSL_Common/Include/algorithm:517
/Developer/boost_1_31_0/boost/shared_ptr.hpp:31
/Developer/boost_1_31_0/boost/date_time/gregorian/greg_month.hpp:14
/Developer/boost_1_31_0/libs/date_time/src/gregorian/greg_month.cpp:14)
/Applications/Metrowerks Codewarrior 9.0/Metrowerks Codewarrior/MSL/MSL_C/
MSL_MacOS/Include/cstdlib_mach.h line 42 int cgetset(char *);
Status : Too many errors printed, aborting program

Do you have any idea what's wrong?

Thanks,
Jane

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk