[omniORB] How do I link my own classes in omniORB program. Please advise.

Sang-Hoon,Lee noohgnas at gmail.com
Thu Jun 30 00:48:11 BST 2005


hi.

It's too simple. 'undefined reference to' error is meant there is no
implementation code.
So, you can make executable file with linking your own compiled code.
For instance like below,

gcc -o exefile myclass.o echo.o my_clt.o

Of course, you have to modify 'Makefile' of echo example.

good luck.



2005/6/29, aaron bernardino <agbernardino at up.edu.ph>:
> Hi.  Good day.
> 
> I have an autoconf build and have successfully run the example programs.
> I have an application similar to the echo example.  I want to instantiate my own
> c++ classes inside my client program, as well as call on my own methods.  I have
> a separate folder where the headers and sources of my own class resides.  I only
> did #include"myclass.h" in the client program.  When I do a make, I get this
> kind of message
> 
> my_clt.o(.text+0x11f): undefined reference to `MyClass::myMethod(void)'
> 
> I don't know how to include the sourcefiles for my own classes (cxx files) in
> the ODE in order to compile correctly.  I'm a newbie to omniORB and Makefiles.
> 
> Please advise.
> Thank you.
> 
> Aaron G. Bernardino
> Mobile Robotics Laboratory
> University of the Philippines
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
> 


-- 
mail: noohgnas at gmail.com
msn: noohgnas at hotmail.com
web: http://mobile.skku.ac.kr/~shlee/

For Liberty ....



More information about the omniORB-list mailing list