![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 Regards, Michael |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Are all you dependencies in your LD_LIBRARY_PATH environment variable when compiling the test program?
|
|
#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
Code:
cc -I/usr/include -L/usr/lib -ltds main.c -o testit |
|
#4
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |