Problems g++ library compiling in QNX 6.5.0

Ian Lance Taylor iant@google.com
Sun Feb 20 07:30:00 GMT 2011


bogdan <bceler@op.pl> writes:

> I'm getting problems with g++ library compiling in QNX 6.5.0
> When I compile a program /src/gcc-4.6-20110212/nto-x86/i486-pc-nto-qnx6.5.0/libstdc++-v3/src/parallel_settings.cc
> I get an error:
> xgcc: error: unrecognized option '-pthread' 
> When I use the -v and -save-temps the result is as follows:

Next time please include the actual command that you are running as
well.  Thanks.

> '-fdiagnostics-show-location=once' '-ffunction-sections' '-fdata-sections' '-g' '-O2' '-fopenmp' '-D' '_GLIBCXX_PARALLEL' 

Using -fopenmp causes gcc to automatically use -pthread by default.  If
you are not using -fopenmp yourself, please open a bug report; see
http://gcc.gnu.org/bugs/ .  Fixing this probably requires defining
GOMP_SELF_SPECS in config/i386/nto.h.

Ian



More information about the Gcc-help mailing list