cc1plus: error: unrecognized command line option "-std=c++0x"

1,580 views
Skip to first unread message

Dan

unread,
Oct 9, 2014, 9:25:34 AM10/9/14
to rna-...@googlegroups.com
I am getting this error message:

cc1plus: error: unrecognized command line option "-std=c++0x"

when trying to run "make"  for STAR_2.4.0dSTAR_2.4.0c and STAR_2.4.0a on Linux CentOS release 5.10 (Final).

On Linux Ubuntu running "make" works just fine though!

Are there any suggestions how this can be fixed or what is missing?

Cheers,
Dan

Alexander Dobin

unread,
Oct 13, 2014, 12:33:33 PM10/13/14
to rna-...@googlegroups.com
Hi Dan,

what version of GCC do you have? You need at least 4.3 which started supporting the c++0x.

Cheers
Alex

Dan

unread,
Oct 13, 2014, 3:44:57 PM10/13/14
to rna-...@googlegroups.com
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)

Dan

Alexander Dobin

unread,
Oct 14, 2014, 4:33:44 PM10/14/14
to rna-...@googlegroups.com
Hi Dan,

this is an old gcc (dated 2007). Please upgrade to a gcc release 4.3 or higer (I am currently using 4.4.6 from 2011). 
Alternatively, you can use pre-compiled binaries from the STAR source directory.

Cheers
Alex
Reply all
Reply to author
Forward
0 new messages