Compiler Error : "passed to ld- if ld is invoked , ignored otherwise"
807575Jan 23 2004 — edited Jan 27 2004Hi
I am building and linking on my Unix Solaris m/c using a Sun Workshop 6 Upgrade 5.3 C++ Compiler.
On running a Build (I have a directory with only 3 files in it) O/P is as follows namely.
I get these warnings of CC compiler-----Here is a Sample Output-----
==============================================================
***building*** file1.o
CC: Warning: Option -o file1.o passed to ld, if ld is invoked, ignored otherwise
***building*** file2.o
CC: Warning: Option -o file2.o passed to ld, if ld is invoked, ignored otherwise
a - ./File1.o
a - ./File2.o
ar: creating libUtility.a
ar: writing libUtility.a
***Build Finished***
==============================================================
My Flags are:
CXX CC
CXXDEFINES -I. -I/..............................// specific to my env files red
CXXFLAGS -g -c
CXXINCLUDES $(ENV_INCLUDES) // specific to my env files red
CXXOUTPUT_FLAGS "-0 %OutFile%"
LINK cc
LINKFLAGS -g
LINKOUTPUT_FLAG -o %OutFile%
LINK_OTHERLIBS
LINK_POST_RULE
PLEASE ADVISE
VJ