Novice to CORBA

Novice to CORBA

Post by uday » Sat, 30 Jun 2001 16:29:10



Hi,

    I am a novice to CORBA and I have written a small application in C++ on
Linux 7.0. I am using VisiBroker as the ORB. (4.X) The C++ compiler is
2.95.3 GNU compiler and GCC libraries are 2.2.2.

When I try to compile my code, I am getting a strage error. All the
object(.o) files are created, but when it tries to link them
I get the following error.

___________________________

g++  -D_REENTRANT -DTHREAD -DPTHREADS -I. -I
/home/kandikon/vbroker/include -I
/home/kandikon/vbroker/include/stubs -I/usr/include -g -D_GNU_SOURCE -c -o
marshal_impl.o marshal_impl.cxx
g++  -D_REENTRANT -DTHREAD -DPTHREADS -o Server Server.o marshal_impl.o
marshal_s.o marshal_c.o \
        -L
/home/kandikon/vbroker/lib -lcosev_r -lcosnm_r -lvport_r -lorb_r -ldl -lpthr
ead
marshal_impl.o: In function `PortableServer_POA_var::operator
PortableServer_POA *(void) const':
/home/kandikon/vbroker/include/poa_c.hh(.gnu.linkonce.t.__thunk_24_op1__13pe
rfrmnceImpl+0x6): undefined reference to `perfrmnceImpl::praveen(void)'
collect2: ld returned 1 exit status
make: *** [Server] Error 1
________________________________

Any pointers in this regard would be of great help.

Thank you.

Regards,
Uday.

 
 
 

Novice to CORBA

Post by Kathrin Winte » Sat, 30 Jun 2001 19:22:28


Hi,

it seems to me that you just forget to link a library. That at least
always was the fault when I received such an error. But I don't kno
Visibroker, so I cannot tell you which one you might have forgotten ...
Maybe it is the PortableServer lib you forgot to link to ?

Kathrin


> Hi,

>     I am a novice to CORBA and I have written a small application in C++ on
> Linux 7.0. I am using VisiBroker as the ORB. (4.X) The C++ compiler is
> 2.95.3 GNU compiler and GCC libraries are 2.2.2.

> When I try to compile my code, I am getting a strage error. All the
> object(.o) files are created, but when it tries to link them
> I get the following error.

> ___________________________

> g++  -D_REENTRANT -DTHREAD -DPTHREADS -I. -I
> /home/kandikon/vbroker/include -I
> /home/kandikon/vbroker/include/stubs -I/usr/include -g -D_GNU_SOURCE -c -o
> marshal_impl.o marshal_impl.cxx
> g++  -D_REENTRANT -DTHREAD -DPTHREADS -o Server Server.o marshal_impl.o
> marshal_s.o marshal_c.o \
>         -L
> /home/kandikon/vbroker/lib -lcosev_r -lcosnm_r -lvport_r -lorb_r -ldl -lpthr
> ead
> marshal_impl.o: In function `PortableServer_POA_var::operator
> PortableServer_POA *(void) const':
> /home/kandikon/vbroker/include/poa_c.hh(.gnu.linkonce.t.__thunk_24_op1__13pe
> rfrmnceImpl+0x6): undefined reference to `perfrmnceImpl::praveen(void)'
> collect2: ld returned 1 exit status
> make: *** [Server] Error 1
> ________________________________

> Any pointers in this regard would be of great help.

> Thank you.

> Regards,
> Uday.


 
 
 

Novice to CORBA

Post by Anil C. Purohi » Wed, 04 Jul 2001 23:40:13


Uday:

If you read the error clearly, it seems to indicate that the method being
accessed "perfrmnceImpl::praveen(void)" is not defined. Make sure you link
the perfrmnceImpl object or the library containing it to this executable.
This might solve the problem.

Good Luck,

Anil


Quote:> Hi,

>     I am a novice to CORBA and I have written a small application in C++
on
> Linux 7.0. I am using VisiBroker as the ORB. (4.X) The C++ compiler is
> 2.95.3 GNU compiler and GCC libraries are 2.2.2.

> When I try to compile my code, I am getting a strage error. All the
> object(.o) files are created, but when it tries to link them
> I get the following error.

> ___________________________

> g++  -D_REENTRANT -DTHREAD -DPTHREADS -I. -I
> /home/kandikon/vbroker/include -I
> /home/kandikon/vbroker/include/stubs -I/usr/include -g -D_GNU_SOURCE -c -o
> marshal_impl.o marshal_impl.cxx
> g++  -D_REENTRANT -DTHREAD -DPTHREADS -o Server Server.o marshal_impl.o
> marshal_s.o marshal_c.o \
>         -L

/home/kandikon/vbroker/lib -lcosev_r -lcosnm_r -lvport_r -lorb_r -ldl -lpthr
Quote:> ead
> marshal_impl.o: In function `PortableServer_POA_var::operator
> PortableServer_POA *(void) const':

/home/kandikon/vbroker/include/poa_c.hh(.gnu.linkonce.t.__thunk_24_op1__13pe

- Show quoted text -

Quote:> rfrmnceImpl+0x6): undefined reference to `perfrmnceImpl::praveen(void)'
> collect2: ld returned 1 exit status
> make: *** [Server] Error 1
> ________________________________

> Any pointers in this regard would be of great help.

> Thank you.

> Regards,
> Uday.

 
 
 

1. Novice Editor (Re: Novice email??)

We have the same problem. But it'd be easy enough to fix without going
into a huge system like Mush, just by setting the default editor to something
a bit more user-friendly. Problem is, there isn't anything.

Anyone have a simple user-friendly editor for UNIX? Prefereably something
that has a line-mode as well as a screen mode, for the times when line noise
is overpowering?
--


\_.--._/
      v        Disclaimer: People have opinions, organisations have policy.

2. MS KnowledgeBase Index?

3. (NOVICE) Client that connect Remote CORBA Server

4. Help! Margins Tab Not Appearing.

5. CORBA, CORBA, CORBA

6. GIMP win32 Where?

7. sharing structures between corba and non-corba source

8. 80C51 or 80C51-XA Simulator Source Code

9. ANNOUNCE: Remoting.Corba 1.2 - CORBA/IIOP Support for .NET

10. strange corba marshal error org.omg.CORBA.MARSHAL

11. Orbix 3.0.1 corba client wants to communicate with VisiBroker 4.5 corba

12. CORBA 2.4.x compliance w.r.t. messaging changes in CORBA core.

13. Embedded CORBA / Alternatives to CORBA