Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

#2005-D: could not open source file

#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
6 REPLIES
Honored Contributor

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.
Acclaimed Contributor

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.

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

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
Highlighted
Acclaimed Contributor

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

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

Didn't had access to the folders