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]

cc1plus errors


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


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