Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compile error :(

Status
Not open for further replies.

hoctro

Technical User
Mar 29, 2001
34
US
if i use #include "stubs/CosNaming_c.hh" in my client file, and I want to execute this command g++ -c Client.cpp, I always get the error Client.cpp: stubs/CosNaming_c.hh: No such file or directory.

can someone suggest a solution to fix this error?
Thanks
 
Maybe the file name is stubs/CosNaming_c.h, with only one 'h'?
And be sure it's placed in the directory stubs, from your actual directory.
 
Hi
I am using visibroker to compile my cpp file thus it has double h :)
 
Then be sure the file is placed there. And be careful about case sensitiveness of Unix.
 
you might wanna try this, just put
#include "CosNaming_c.hh"

and then when u compile use the -I flag to specify the path of the include file u r using.

eg. gcc -I../stubs -c etc.
or
gcc -I./stubs -c etc.

i always get it to work like this.
hope it helps.
 
thanks for all the replies

do you get ld: fatal : liborb_64.so : WRONG ELFCLASS when compiling this c++ client?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top