This is the mail archive of the
mailing list for the GCC project.
Re: cc1plus errors
- From: "Nathan ." <snmptoddler at hotmail dot com>
- To: phil at jaj dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 04 Oct 2002 23:03:07 +0000
- Subject: Re: cc1plus errors
Thanks a lot Phil. It was the "-m" option. And yes -pthreads does work. It
was a typo I was doing. "-pthread" without s.
Also I could not find any of these options in the man pages of g++ on my
system. Perhaps it is old. If you refer me to online man page for gcc/g++.
By the way I still need to archive all the .o files. The -xar , -xarch=v8a
etc options dont work with g++ . What is the alternative.
Thanks a ton again!
From: Phil Edwards <email@example.com>
To: "Nathan ." <firstname.lastname@example.org>
Subject: Re: cc1plus errors
Date: Fri, 4 Oct 2002 18:58:47 -0400
On Fri, Oct 04, 2002 at 10:55:39PM +0000, Nathan . wrote:
> /usr/local/bin/g++ -I/usr/openwin/include -I../xobj -I.
> -I/opt/SUNWmotif/share/include -Dsun -D_REENTRANT -m -c button.cc
> cc1plus: Invalid option `-c'
Probably because "-m" is not an option, and it's getting confused.
> #1. I've no idea where the "c" option is coming. It is not specified in
> Makefile. Does the make utility puts it since I'm trying to create a
You need to take a closer look at the makefile, and get some advice on
what is involved in the "seperate compilation" model used in C and C++.
> #3. What is the valid multithreaded option in g++ flags. I tried
> doesnt work.
Try -pthreads, or look in the manual.
I would therefore like to posit that computing's central challenge, viz.
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra,
Join the world’s largest e-mail service with MSN Hotmail.