This is the mail archive of the gcc@gcc.gnu.org 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


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


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