This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cc1plus errors
- From: Phil Edwards <phil at jaj dot com>
- To: "Nathan ." <snmptoddler at hotmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 4 Oct 2002 18:58:47 -0400
- Subject: Re: cc1plus errors
- References: <F58WL0JcQ41gcljD2E200001eff@hotmail.com>
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