can't compile boost example
I just downloaded boost package, but seemed not able to compile the example programs. My platform is Redhat Linux 7.3, compiler is gcc version 2.96 I followed the installation guide, downloade the boost package and successfully compiled it. I install it to a directory called /home/hzhang/tools/boost Then when I tried to compile an example program, first.cpp, which comes with boost, I type $ g++ first.cpp -I/home/hzhang/tools/boost/include/boost-1_32/ It gave me this error In file included from /home/hzhang/tools/boost/include/boost-1_32/boost/program_options.hpp:15, from first.cpp:9: /home/hzhang/tools/boost/include/boost-1_32/boost/program_options/parsers.hpp:151: parse error before `
'
Did I miss any environmental variable set up or forget to include any necessary paths in the command? Please highlight me, because I cound't find even the simplest compiling command example from boost web page. Thanks a lot! -- Hongyu Zhang Computational biologist Ceres Inc.
Hongyu Zhang wrote:
I just downloaded boost package, but seemed not able to compile the example programs.
My platform is Redhat Linux 7.3, compiler is gcc version 2.96
It gave me this error
In file included from /home/hzhang/tools/boost/include/boost-1_32/boost/program_options.hpp:15, from first.cpp:9:
/home/hzhang/tools/boost/include/boost-1_32/boost/program_options/parsers.hpp:151:
parse error before `
'
Looking at: http://www.meta-comm.com/engineering/boost-regression/developer/program_opti... The indication that gcc-2.95.3 is marked as unusable. I'd say you will have to upgrade compilers if you want to use the program options library. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
participants (2)
-
Hongyu Zhang
-
Rene Rivera