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!

LD error on MAKE

807575Oct 22 2001 — edited Oct 25 2001
I would like your help to answer a question about an error from a make.

My question is why is this message is displayed.

'ld: warning: file Griev.o: attempted multiple inclusion of file'

I'm looking for simple answer to remove the error.

Thanks for your help

Michael Hines, USPS.


The submit line is 'make -f Griev.mk'
--------------------------------------------------------------------------

SOURCE >make -f Griev.mk

display from this shows
-------------------------------------------------------------------------
CC -g -c -I. -o Griev.o Griev.cpp
CC -g -I. -I/oracle/product/8.1.7/precomp/public -L/oracle/product/8.1.7/lib -o Griev Griev.o Griev.cpp -lclntst8 `cat /oracle/product/8.1.7/lib/ldflags` `cat /oracle/product/8.1.7/lib/sysliblist` -R/oracle /product/8.1.7/lib -laio -lm -lthread
ld: warning: file Griev.o: attempted multiple inclusion of file

SOURCE>
-------------------------------------------------------------------------

Makefile is named Griev.mk and is listed below

-------------------------------------------------------------------- SOURCE>cat Griev.mk

temp: Griev.exe
include {ORACLE_HOME}/precomp/lib/env_precomp.mk

MYINCLUDES = -I. -I${ORACLE_HOME}/precomp/public PCFLAGS = CODE=CPP CPP_SUFFIX=cpp
SYS_INCLUDE=\(/opt/SUNWspro/SC4.2/include/CC,/usr/include\) CPPFLAGS = -g

Griev: Griev.o Griev.cpp
CC $(CPPFLAGS) $(MYINCLUDES) -L$(ORACLE_LIB) -o Griev Griev.o Griev.cpp $(STATICPROLDLIBS)

Griev.o: Griev.cpp
CC $(CPPFLAGS) -c -I. -o Griev.o Griev.cpp

Griev.cpp: Griev.pc
proc $(PCFLAGS) Griev.pc

clean:
rm Griev.cpp Griev.o

SOURCE0>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2001
Added on Oct 22 2001
1 comment
208 views