This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
cc1plus errors
- From: "Nathan ." <snmptoddler at hotmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 04 Oct 2002 22:55:39 +0000
- Subject: cc1plus errors
- Bcc:
Hello All,
I'm trying to compile an existing code with g++ (complies fine with forte
C++ compiler). I am getting following errors with g++ :
===========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'
*** Error code 1
===================================================================
#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.
#2. Even if "c" option is there why does g++ complain about it. It is a
valid option since it needs .o files to archive it to the library.
#3. What is the valid multithreaded option in g++ flags. I tried -pthread,
doesnt work.
Please advise.
Thanks
-Nathan
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com