Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2001-06-24 21:38:20


It's at <http://groups.yahoo.com/group/boost/files/config/config_03.zip>.

1. Maybe you should add a printout of the platform.

2. I tried to improve the code by adding the other intrinsic #defines the
CodeWarrior sets up. I improved the Metrowerks compiler file. I also added
a new platform file for the Mac OS. This is what I got from the config_info
program:

//=========================================================================
Metrowerks CodeWarrior 0x2301
    __cplusplus =199711L
    __STDC__ =1
    __MWERKS__ =0x2301
    __A5__ =0
    __embedded_cplusplus =0
    __fourbyteints__ =1
    __IEEEdoubles__ =1
    __MC68020__ =0
    __MC68881__ =0
    __profile__ =0
    __powerc =1
    __POWERPC__ =1
    macintosh =1

*********************************************************************

MSL standard library version 0x2301

*********************************************************************

Boost version 102200
    BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS [no value]
    BOOST_NO_MEMBER_TEMPLATE_FRIENDS [no value]
    BOOST_NO_POINTER_TO_MEMBER_CONST [no value]
    BOOST_DECL [no value]
    BOOST_MSVC6_MEMBER_TEMPLATES [no value]
    BOOST_NO_HASH [no value]
    BOOST_STD_EXTENSION_NAMESPACE =std
    BOOST_SYSTEM_HAS_STDINT_H [no value]
//=========================================================================

The things I wrote only take CWP5/Mac into account; we need people to fill
in any differences for CWP5/Win, CWP6/Mac, CWP6/Win, and CWP6/MOX.

3. I did preliminary support for the MPW compilers. I created a mpw.hpp
file for this purpose. MPW has a pre-Standard library, so you need STLport.
I got the PowerPC version of config_info to work, the PowerPC version of
config_test got compile-time errors. I got a hard crash when I tried to run
the 68K version of the config_info, I don't know why.

4. I'm attaching my altered/new files as "new.zip". The compile results
from MPW, including a run of config_info, is in "results". The "Makefile"
is how I built the MPW tools.

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com


# 9:42:44 PM ----- Build of config_info_ppc. # 9:42:45 PM ----- Analyzing dependencies. # 9:42:47 PM ----- Executing build commands. MrCpp '::config_03 Folder:libs:config:test:'config_info.cpp -o :config_info.cpp.x -i "::config_03 Folder:" -i "Sailor Moon:Programming:Boost:" -i "Sailor Mercury:More SDK's:STLport-4.0:stlport:" -sym off -includes unix_mac -ansi on -ansifor -bool on -exceptions on -rtti on -inline on,global PPCLink -o config_info_ppc ":config_info.cpp.x" "Sailor Mercury:CodeWarrior Pro 5:CodeWarrior MPW:MPW::Interfaces&Libraries:Libraries:SharedLibraries:InterfaceLib" "Sailor Mercury:CodeWarrior Pro 5:CodeWarrior MPW:MPW::Interfaces&Libraries:Libraries:SharedLibraries:MrCExceptionsLib" "Sailor Mercury:CodeWarrior Pro 5:CodeWarrior MPW:MPW::Interfaces&Libraries:Libraries:SharedLibraries:StdCLib" "Sailor Mercury:CodeWarrior Pro 5:CodeWarrior MPW:MPW::Interfaces&Libraries:Libraries:SharedLibraries:MathLib" "Sailor Mercury:CodeWarrior Pro 5:CodeWarrior MPW:MPW::Interfaces&Libraries:Libraries:PPCLibraries:StdCRuntime.o" "Sailor Mercury:CodeWarrior Pro 5:CodeWarrior MPW:MPW::Interfaces&Libraries:Libraries:PPCLibraries:PPCCRuntime.o" "Sailor Mercury:CodeWarrior Pro 5:CodeWarrior MPW:MPW::Interfaces&Libraries:Libraries:PPCLibraries:PPCToolLibs.o" "Sailor Mercury:More SDK's:STLport-4.0:stlport::lib:STLportLib.PPC.o" "Sailor Mercury:CodeWarrior Pro 5:CodeWarrior MPW:MPW::Interfaces&Libraries:Libraries:PPCLibraries:MrCPlusLib.o" "Sailor Mercury:CodeWarrior Pro 5:CodeWarrior MPW:MPW::Interfaces&Libraries:Libraries:PPCLibraries:MrCIOStreams.o" -sym off -mf -d -t 'MPST' -c 'MPS ' # 9:43:25 PM ----- Done. config_info_ppc MPW MrCpp 0x500 __cplusplus = 1 __powerc = 1 __POWERPC__ = 1 macintosh = 1 __MRC__ = 0x500 __FPCE__ = 1 __FPCE_IEEE__ = 1 MPW_CPLUS = 0x890 __MC601 = 1 __POWERPC = 1 __useAppleExts__ = 1 powerc = 1 ********************************************************************* STLPort standard library version 0x400 __SGI_STL_PORT =0x400 __SGI_STL_OWN_IOSTREAMS [no value] __STL_USE_NEW_IOSTREAMS [no value] __STL_NO_RELOPS_NAMESPACE [no value] __STL_NO_NEW_NEW_HEADER [no value] __STL_DEFAULT_TYPE_PARAM =1 __STL_NO_PARTIAL_SPECIALIZATION_SYNTAX [no value] __STL_NO_BAD_ALLOC [no value] __STL_NO_CLASS_PARTIAL_SPECIALIZATION [no value] __STL_NO_FUNCTION_TMPL_PARTIAL_ORDER [no value] __STL_NO_METHOD_SPECIALIZATION [no value] __STL_NO_EXCEPTION_HEADER =1 __STL_HAS_NO_NEW_IOSTREAMS [no value] __STL_HAS_NO_NEW_C_HEADERS [no value] __STL_THROW_RETURN_BUG [no value] __STL_IMPORT_VENDOR_CSTD =1 __STL_USE_OWN_NAMESPACE =1 ********************************************************************* Boost version 102200 BOOST_DECL [no value] BOOST_MSVC6_MEMBER_TEMPLATES [no value] BOOST_NO_STD_ITERATOR_TRAITS [no value] BOOST_STD_EXTENSION_NAMESPACE =_STL BOOST_NO_STDC_NAMESPACE [no value] # 9:43:46 PM ----- Build of config_test_ppc. # 9:43:46 PM ----- Analyzing dependencies. # 9:43:47 PM ----- Executing build commands. MrCpp '::config_03 Folder:libs:config:test:'config_test.cpp -o :config_test.cpp.x -i "::config_03 Folder:" -i "Sailor Moon:Programming:Boost:" -i "Sailor Mercury:More SDK's:STLport-4.0:stlport:" -sym off -includes unix_mac -ansi on -ansifor -bool on -exceptions on -rtti on -inline on,global MrCpp C++ Compiler 5.0.0d3c1 Copyright (C) 1994-2000 by Apple Computer, Inc. { detail::report_exception( out, "std::bad_cast:", ex.what() ); } ^ File "Sailor Moon:Programming:Boost:boost:detail:catch_exceptions.hpp"; line 82 #Error: 'what' is not a member of struct 'bad_cast' #----------------------- std::cout, std::cerr ); ^ File "Sailor Moon:Programming:Boost:boost:detail:catch_exceptions.hpp"; line 83 #Error: 'bad_typeid' is not a member of namespace '_STL' #----------------------- { detail::report_exception( out, "std::bad_typeid:", ex.what() ); } ^ File "Sailor Moon:Programming:Boost:boost:detail:catch_exceptions.hpp"; line 84 #Error: not a struct or union type #----------------------- { detail::report_exception( out, "std::bad_typeid:", ex.what() ); } ^ File "Sailor Moon:Programming:Boost:boost:detail:catch_exceptions.hpp"; line 84 #Warning 6: value of expression is not used #----------------------- struct is_int<int> ^ File "::config_03 Folder:libs:config:test:boost_no_cv_spec.cxx"; line 20 #Error: 'is_int' is already defined #----------------------- struct is_int<const int> ^ File "::config_03 Folder:libs:config:test:boost_no_cv_spec.cxx"; line 24 #Error: 'is_int' is already defined #----------------------- Fatal error: too many errors ### MPW Shell - Execution of config_test_ppc.makeout terminated. ### MPW Shell - Execution of BuildProgram terminated.

# File: config_tests.make # Target: config_tests # Created: Sunday, June 24, 2001 06:37:58 PM MAKEFILE = Makefile ¥MondoBuild¥ = {MAKEFILE} # Make blank to avoid rebuilds when makefile is modified NewCfgDir = ::config_03 Folder: ObjDir = : Includes = ¶ -i "{NewCfgDir}" ¶ -i "{Boost}" ¶ -i "{STL}" Sym-PPC = -sym off Sym-68K = -sym off GeneralCPlusOptions = -includes unix_mac -ansi on -ansifor -bool on -exceptions on -rtti on -inline on,global PPCCPlusOptions = {Includes} {Sym-PPC} {GeneralCPlusOptions} CPlusOptions = {Includes} {Sym-68K} -model far -mc68020 -mc68881 -elems881 {GeneralCPlusOptions} ### Source Files ### SrcFiles = ¶ "{NewCfgDir}libs:config:test:config_info.cpp" ¶ "{NewCfgDir}libs:config:test:config_test.cpp" ### Object Files ### Info-ObjFiles-PPC = ¶ "{ObjDir}config_info.cpp.x" Info-ObjFiles-68K = ¶ "{ObjDir}config_info.cpp.o" Test-ObjFiles-PPC = ¶ "{ObjDir}config_test.cpp.x" Test-ObjFiles-68K = ¶ "{ObjDir}config_test.cpp.o" ### Libraries ### LibFiles-PPC = ¶ "{SharedLibraries}InterfaceLib" ¶ "{SharedLibraries}MrCExceptionsLib" ¶ "{SharedLibraries}StdCLib" ¶ "{SharedLibraries}MathLib" ¶ "{PPCLibraries}StdCRuntime.o" ¶ "{PPCLibraries}PPCCRuntime.o" ¶ "{PPCLibraries}PPCToolLibs.o" ¶ "{STL}:lib:STLportLib.PPC.o" ¶ "{PPCLibraries}MrCPlusLib.o" ¶ "{PPCLibraries}MrCIOStreams.o" LibFiles-68K = ¶ "{Libraries}Stubs.o" ¶ "{CLibraries}CLib881.o" ¶ "{Libraries}MathLib881.far.o" ¶ "{CLibraries}StdCLib.far.o" ¶ "{STL}:lib:STLportLib.68K.o" ¶ "{CLibraries}IOStreams881.far.o" ¶ "{CLibraries}CPlusLib.far.o" ¶ "{Libraries}MacRuntime.o" ¶ "{Libraries}IntEnv.far.o" ¶ "{Libraries}ToolLibs.far.o" ¶ "{Libraries}Interface.o" ### Default Rules ### .cpp.x Ä .cpp {¥MondoBuild¥} {PPCCPlus} {depDir}{default}.cpp -o {targDir}{default}.cpp.x {PPCCPlusOptions} .cpp.o Ä .cpp {¥MondoBuild¥} {CPlus} {depDir}{default}.cpp -o {targDir}{default}.cpp.o {CPlusOptions} ### Build Rules ### all Ä config_info config_test config_info Ä config_info_ppc config_info_68k config_test Ä config_test_ppc config_test_68k config_info_ppc ÄÄ {Info-ObjFiles-PPC} {LibFiles-PPC} {¥MondoBuild¥} PPCLink ¶ -o {Targ} ¶ {Info-ObjFiles-PPC} ¶ {LibFiles-PPC} ¶ {Sym-PPC} ¶ -mf -d ¶ -t 'MPST' ¶ -c 'MPS ' config_info_68k ÄÄ {Info-ObjFiles-68K} {LibFiles-68K} {¥MondoBuild¥} ILink ¶ -o {Targ} ¶ {Info-ObjFiles-68K} ¶ {LibFiles-68K} ¶ {Sym-68K} ¶ -mf -d ¶ -t 'MPST' ¶ -c 'MPS ' ¶ -model far ¶ -state rewrite ¶ -compact -pad 0 If "{Sym-68K}" =~ /-sym Å[nNuU]Å/ ILinkToSYM {Targ}.NJ -mf -sym 3.2 -c 'sade' End config_test_ppc ÄÄ {Test-ObjFiles-PPC} {LibFiles-PPC} {¥MondoBuild¥} PPCLink ¶ -o {Targ} ¶ {Test-ObjFiles-PPC} ¶ {LibFiles-PPC} ¶ {Sym-PPC} ¶ -mf -d ¶ -t 'MPST' ¶ -c 'MPS ' config_test_68k ÄÄ {Test-ObjFiles-68K} {LibFiles-68K} {¥MondoBuild¥} ILink ¶ -o {Targ} ¶ {Test-ObjFiles-68K} ¶ {LibFiles-68K} ¶ {Sym-68K} ¶ -mf -d ¶ -t 'MPST' ¶ -c 'MPS ' ¶ -model far ¶ -state rewrite ¶ -compact -pad 0 If "{Sym-68K}" =~ /-sym Å[nNuU]Å/ ILinkToSYM {Targ}.NJ -mf -sym 3.2 -c 'sade' End ### Clean Rules ### clean Ä Delete -i {Info-ObjFiles-PPC} {Info-ObjFiles-68K} {Test-ObjFiles-PPC} {Test-ObjFiles-68K} config_info_68k.NJ config_test_68k.NJ clean_all Ä clean Delete -i config_info_ppc config_test_ppc config_info_68k config_test_68k ### Required Dependencies ### "{ObjDir}config_info.cpp.x" "{ObjDir}config_info.cpp.o" Ä "{NewCfgDir}libs:config:test:config_info.cpp" "{ObjDir}config_test.cpp.x" "{ObjDir}config_test.cpp.o" Ä "{NewCfgDir}libs:config:test:config_test.cpp" ### Optional Dependencies ### ### Build this target to generate "include file" dependencies. ### Dependencies Ä $OutOfDate MakeDepend ¶ -append {MAKEFILE} ¶ -ignore "{Boost}" ¶ -ignore "{STL}" ¶ -ignore "{CIncludes}" ¶ -objdir "{ObjDir}" ¶ -objext .x ¶ -objext .o ¶ {Includes} ¶ {SrcFiles}



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk