Re: #2005-D: could not open source file (302 Views)
Reply
Advisor
Anwarul Kabir
Posts: 27
Registered: ‎12-03-2008
Message 1 of 7 (302 Views)

#2005-D: could not open source file

HI

I am getting this error when trying to compile a running 32 bit application in 64.

"../inc/reporter_base.h", line 6: error #2005-D: could not open source file
"xercesc/sax/HandlerBase.hpp"
#include

in my make file i have included the source for that header like this

INCLUDES= \
$(OCIINCLUDES) \
-I. \
-I../inc \
-I$(BASE_DIR)/lib/db_ob/inc \
-I$(BASE_DIR)/lib/utility/inc \
-I$(BASE_DIR)/lib/xml/inc \
-I/app/dvlp/common/xerces/include/ \
-I$(SECDIR)/inc

and I have checked the path to make sure that the xercesc/sax/HandlerBase.hpp file exsits.

What do i need to do? please help
Please use plain text.
Honored Contributor
Steven Schweda
Posts: 9,074
Registered: ‎02-23-2005
Message 2 of 7 (302 Views)

Re: #2005-D: could not open source file

> What do i need to do?

It might help if we knew where your
HandlerBase.hpp really was. And what
$(OCIINCLUDES), $(BASE_DIR), and $(SECDIR)
are.

Apparently, none of those "-I" options leads
to a place where the path
"xercesc/sax/HandlerBase.hpp" works, but we
non-psychics have no way to know exactly why.
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,853
Registered: ‎03-06-2006
Message 3 of 7 (302 Views)

Re: #2005-D: could not open source file

As Steven says, this isn't rocket science. The compiler takes all of the -I paths and then adds /xercesc/sax/HandlerBase.hpp to the end and sees if the file is there and stops on the first one.

Unless you are using clearcase, either the file is there or not.

If the #include had "", then it would also look in the current directory (of the including file) first.
Please use plain text.
Advisor
Anwarul Kabir
Posts: 27
Registered: ‎12-03-2008
Message 4 of 7 (302 Views)

Re: #2005-D: could not open source file

Sorry for the low details.

The BASE_DIR = ../../../
SECDIR = /app/dvlp/common/Secure/C++


But I think the last post was on the money I am going to check the path to see if the user can open them or not.

I will let you guys know what else i have found

Thanks for the response
Please use plain text.
Advisor
Anwarul Kabir
Posts: 27
Registered: ‎12-03-2008
Message 5 of 7 (302 Views)

Re: #2005-D: could not open source file

Yeap I don't have access to those folders.

I should be more carefull before opening threads and asking dumb questions, i guess... :( sorry
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,853
Registered: ‎03-06-2006
Message 6 of 7 (302 Views)

Re: #2005-D: could not open source file

>I don't have access to those folders. ... and asking dumb questions

Don't feel too bad. The compiler could have helped you by giving a warning for bad -I paths.
You do get an error with:
$ UNIX95= c89 -c -I/var/adm/sw/products ~/hi.c
cc: error 1902: cannot open /var/adm/sw/products for -I directory search
Please use plain text.
Advisor
Anwarul Kabir
Posts: 27
Registered: ‎12-03-2008
Message 7 of 7 (302 Views)

Re: #2005-D: could not open source file

Didn't had access to the folders
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation