Thread View: borland.public.kylix.language.cpp
2 messages
2 total messages
Started by martin.jg.gregory
Tue, 15 Feb 2005 22:02
How to specify a link library
Author: 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!
Re: How to specify a link library
Author: martin.jg.gregory
Date: Tue, 15 Feb 2005 23:09
Date: Tue, 15 Feb 2005 23:09
5 lines
1405 bytes
1405 bytes
Note: I've tried Project->Edit Option Source, which looked extremely promising, but Kylix seems to be completely ignoring anything I put in there. I can put absolute rubbish in LFLAGS or OBJFILES and it doesn't complain about it: it just goes on and delivers the unresolved reference error... :-S
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads