This is the mail archive of the
gcc@gcc.gnu.org
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
- Bcc:
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!
-Nathan
From: Phil Edwards <phil@jaj.com>
To: "Nathan ." <snmptoddler@hotmail.com>
CC: gcc@gcc.gnu.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:
> ===========errors==================================================
> /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
the
> Makefile. Does the make utility puts it since I'm trying to create a
> library.
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
-pthread,
> doesnt work.
Try -pthreads, or look in the manual.
Phil
--
I would therefore like to posit that computing's central challenge, viz.
"How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra,
1930-2002
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com