Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compiler Error : "passed to ld- if ld is invoked , ignored otherwise"

807575Jan 23 2004 — edited Jan 27 2004
Hi
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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2004
Added on Jan 23 2004
2 comments
425 views