Operating System - HP-UX
1753629 Members
5904 Online
108798 Solutions
New Discussion юеВ

Re: Files not being included

 
including files
New Member

Files not being included

i have include 3 files from the same directory.
When i give the same path with -I it includes only one file and gives an error of unsatisfied symbol for the rest. What can possibly be a problem.
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Files not being included

What compiler version are you using? What error are you getting?
"unsatisfied symbol" is typically a linker error, not a compiler.
including files
New Member

Re: Files not being included

Actually i am trying to use Objectivity database through my C++ program.
Objectivity requires me to include "ooObjy.h" file. In the code first a connection is made then a session. All the respective header files for session and connection are in the same dir where ooObjy.h is present. The compiler cant read these files
I have included the dir using -I. I also tried to include these header files individually.
The error i get is ::
Unsatisfied symbols:
ooSession::fd() (first referenced in Sample.o) (code)
opiHandle::operator =(const opiHandle &) (first referenced in Sample.o) (code)
ooConnection::createSession(const char *,unsigned int,unsigned int,unsigned int,bool,int) (first referenced in Sample.o) (code)
ooKernelException::get_kind() const (first referenced in Sample.o) (code)
ooKernelException::what() const (first referenced in Sample.o) (code)
static ooObjy::shutdown() (first referenced in Sample.o) (code)
ooSession::smDefaultMrowMode (first referenced in Sample.o) (data)
ooSession::commit() (first referenced in Sample.o) (code)
opiHandle::opiHandle()%1 (first referenced in Sample.o) (code)
ooSession::smDefaultIndexMode (first referenced in Sample.o) (data)
opiProcessInit() (first referenced in Sample.o) (code)
opiHandle::name() const (first referenced in Sample.o) (code)
ooObjy::smDefaultAutoRecover (first referenced in Sample.o) (data)
static ooObjy::getConnection(const char *,bool) (first referenced in Sample.o) (code)
typeid (first referenced in Sample.o) (data)
static ooObjy::startup(unsigned int,ooAMSUsage,bool) (first referenced in Sample.o) (code)
opiHandle::~opiHandle() (first referenced in Sample.o) (code)
ooSession::begin(ooMode,ooMode,ooIndexMode) (first referenced in Sample.o) (code)
opiHandle::opiHandle()%1 (first referenced in Sample.o) (code)
opiHandle::exist(const opiHandle &,const char *,ooMode) (first referenced in Sample.o) (code)
OldSchool
Honored Contributor

Re: Files not being included

as Dennis said, this is a linking error.

It found, and read, the .h at compile time. What it can't find is the library file containing the objects listed above.

Also, you failed to provide the actual command line as requested.

Unsat's means it couldn't find the symbols either in the code you compiled or the libraries you provided. In your case the later...so where are the Objectivity lib files located?
Dennis Handly
Acclaimed Contributor

Re: Files not being included

>through my C++ program.

Again, which compiler version? What OS version?

>The error I get is: Unsatisfied symbols:

Where are these symbols suppose to be defined?
In some lib on the link line?