Mail Archives: djgpp/1998/10/02/08:10:16
John \"The Mayor\" Curley <themayor AT ix DOT netcom DOT com> wrote:
> I would like to link with some 3rd Party class libraries. How would I
> specify the path and name of the libraries from the command line?
You specify an extra library-dir with: -Lyour/dir/here
an extra include-dir with: -Iyour/dir/here
and the library name by: -lname (only if the library is named
libname.a, else gcc will not find it. You can also add the lib to the
link line as if it's an object: gcc -o prog.exe prog.o /your/dir/extlib.a)
(It's all in gcc.info, and maybe even in the FAQ)
And finally make sure they are compiled with djgpp (but you know this
already, right), because you can't mix non-djgpp-libs with djgpp-libs
(In general. An exception is rsxntdj, but that creates win-apps)
bye now,
Robert.
--
rjvdboon AT cs DOT vu DOT nl | "En dat is niet waar!" sprak ex-Staatsecretaris-
www.cs.vu.nl/~rjvdboon | van-Onderwijs Netelenbos fel.
- Raw text -