The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error while loading libstlport_gcc.so library shafi2all High Level Programming 0 05-10-2008 12:53 PM
Custom error page when tomcat authentication fails sebagra UNIX and Linux Applications 0 05-06-2008 02:10 PM
swat library error on Solaris 9 MuellerUrs SUN Solaris 2 02-09-2006 12:10 PM
library not found error virtual_j High Level Programming 1 08-31-2005 07:48 AM
Shared library creation error satguyz High Level Programming 0 06-21-2005 08:08 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-02-2005
Registered User
 

Join Date: May 2005
Posts: 3
Solaris 9 Custom Library Error

Gday People i have a library created in c++ that is used to control custom hardware. The library compiles fine, however when i compile a test program that links the library i get the following errors:

Code:
Undefined                       first referenced
 symbol                             in file
__1cHostream2l6ML_r0_               /usr/lib/libtds.so
cout                                /usr/lib/libtds.so
__1c2N6FI_pv_                       /usr/lib/libtds.so
__1cHostream2l6MpFrnDios__2_r0_     /usr/lib/libtds.so
__1cNIostream_init2t6M_v_           /usr/lib/libtds.so
__1cG__CrunGex_get6F_pv_            /usr/lib/libtds.so
__1cOunsafe_ostream2l6ML_r0_        /usr/lib/libtds.so
__1cG__CrunHex_skip6F_b_            /usr/lib/libtds.so
__1cG__CrunSregister_exit_code6FpG_v_v_ /usr/lib/libtds.so
__1c2k6Fpv_v_                       /usr/lib/libtds.so
__1cEendl6FrnHostream__1_           /usr/lib/libtds.so
__1cG__CrunKpure_error6F_v_         /usr/lib/libtds.so
__1cG__CrunIex_clean6F_v_           /usr/lib/libtds.so
__1cG__CrunMex_rethrow_q6F_v_       /usr/lib/libtds.so
cerr                                /usr/lib/libtds.so
__1cHostream2l6Ml_r0_               /usr/lib/libtds.so
__1cG__CrunIex_alloc6FI_pv_         /usr/lib/libtds.so
__1c2n6FI_pv_                       /usr/lib/libtds.so
__1cOunsafe_ostreamGoutstr6Mpkc2_v_ /usr/lib/libtds.so
__1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ /usr/lib/libtds.so
__1cNIostream_init2T6M_v_           /usr/lib/libtds.so
__1cDdec6FrnDios__1_                /usr/lib/libtds.so
__1cOunsafe_ostream2l6Ml_r0_        /usr/lib/libtds.so
__1c2K6Fpv_v_                       /usr/lib/libtds.so
__1cDhex6FrnDios__1_                /usr/lib/libtds.so
Any help will be great!

Regards,
Michael
Reply With Quote
Forum Sponsor
  #2  
Old 05-02-2005
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,643
Are all you dependencies in your LD_LIBRARY_PATH environment variable when compiling the test program?
Reply With Quote
  #3  
Old 05-02-2005
Registered User
 

Join Date: May 2005
Posts: 3
Gday,

Yes my LD_LIBRARY_PATH dependencies seem to be set up fine.
When i do a ldd on the library all links seem to be fine as well

Code:
/usr/lib/libtds.so 
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmd5.so.1 =>   /usr/lib/libmd5.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1
I am compiling using

Code:
cc -I/usr/include -L/usr/lib -ltds main.c -o testit
Reply With Quote
  #4  
Old 05-03-2005
Registered User
 

Join Date: May 2005
Posts: 3
I have managed to find the problem.

I needed to link libiostream and libCrun

using

-liostream -lCrun

Thankyou for your help which lead to this solution
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0