* Probs with linking a library
@ 2004-05-11 19:39 Sumith Makam
2004-05-11 19:43 ` Eljay Love-Jensen
0 siblings, 1 reply; 2+ messages in thread
From: Sumith Makam @ 2004-05-11 19:39 UTC (permalink / raw)
To: gcc-help
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1631 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 259 bytes --]
----------------------------------------- (on isc)
________________________________________________________________________
Powered by TREND VirusWall: Information Superhighway Centre, IIT Roorkee
---------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Probs with linking a library
2004-05-11 19:39 Probs with linking a library Sumith Makam
@ 2004-05-11 19:43 ` Eljay Love-Jensen
0 siblings, 0 replies; 2+ messages in thread
From: Eljay Love-Jensen @ 2004-05-11 19:43 UTC (permalink / raw)
To: Sumith Makam, gcc-help
Hi Sumith,
Order is important.
Try this:
g++ -lm -lcrypto -lrpcsvc -L/home/sumith/sw/keynote-2.3
okecl_client.o okecl_interface_clnt.o okecl_interface_xdr.o -o oke-load
-lkeynote
HTH,
--Eljay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-11 19:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-11 19:39 Probs with linking a library Sumith Makam
2004-05-11 19:43 ` Eljay Love-Jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).