This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 <>
To: "Nathan ." <>
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
> 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.


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]