Article View: borland.public.kylix.language.cpp
Article #25How to specify a link library
From: martin.jg.gregory
Date: Tue, 15 Feb 2005 22:02
Date: Tue, 15 Feb 2005 22:02
24 lines
1533 bytes
1533 bytes
(Originally posted to .ide by mistake) Hi, I want to know how to do the equivalent of the -l flag to gcc. I have the Kylix Library path (under Environment) pointing to where .a files that my application needs to use are, but I can't see how to tell it to look at those libraries. IE I have #include "foo.h" a = some_foo_function; and libfoo.a that has some_foo_function implemented in it. How can I persuade Kylix to link this? (It compiles OK) At the moment I get an unresolved reference to some_foo_function at link time. Thanks!
Technical Details
Message-ID:
<1108504973.535279.232290@z14g2000cwz.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10ed86,c74efe584e1ef81f,start X-Google-Attributes: gid10ed86,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: martin.jg.gregory@gmail.com Newsgroups: borland.public.kylix.language.cpp Subject: How to specify a link library Date: 15 Feb 2005 14:02:53 -0800 Organization: http://groups.google.com Lines: 25 Message-ID: <1108504973.535279.232290@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 192.88.162.35 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1108504979 1995 127.0.0.1 (15 Feb 2005 22:02:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 15 Feb 2005 22:02:59 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=192.88.162.35; posting-account=9xN9BA0AAAByFy7OujJ_cYDSrv-t5OiB