Probs with linking a library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

I'm  the problem  with the keynote library.....

I've even verified the library with a small application...it worked well
with out any error in linking the library in that application....


I've a problem in linking the keynote library.....
The error is as  follows:
***************************************************************************
g++ -lkeynote -lm -lcrypto -lrpcsvc -L/home/sumith/sw/keynote-2.3
okecl_client.o okecl_interface_clnt.o okecl_interface_xdr.o -o oke-load
------------------------------------------------------------------------
Error Report:
okecl_client.o(.gnu.linkonce.t._ZN14auto_kn_deckeyD1Ev+0xd): In function
`auto_kn_deckey::~auto_kn_deckey [in-charge]()':
../oketools++/include/keynote_tools.h:83: undefined reference to
`kn_free_key'
okecl_client.o(.gnu.linkonce.t._ZN13keynote_tools14extract_stringESs+0x17):
In function `keynote_tools::extract_string(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >)':
../oketools++/include/keynote_tools.h:53: undefined reference to
`kn_get_string'
okecl_client.o(.gnu.linkonce.t._ZN13keynote_tools10decode_keyESsb+0x3c):
In function `keynote_tools::decode_key(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, bool)':
../oketools++/include/tracing.h:21: undefined reference to `kn_decode_key'
*************************************************************************

It is giving the kn_decode_key, kn_free_key, kn_get_string, kn_error_no as
undefined references....But when i did the 
objdump -t libkeynote.a ....it has shown all the above functions....

Sumith Makam
M.Tech CSE II Yr
IIT Roorkee	 	 


----------------------------------------- (on isc)

________________________________________________________________________

Powered by TREND VirusWall: Information Superhighway Centre, IIT Roorkee


---------------------------------------------------------

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux