Re: [gdome]Compiling gdome- examples with mingw
- From: Tobias Peters <t-peters gmx de>
- To: "gdome gnome org" <gdome gnome org>
- Subject: Re: [gdome]Compiling gdome- examples with mingw
- Date: Wed, 14 Nov 2001 23:33:17 +0100 (CET)
In C, there is a difference between including a library's header files,
and actually linking to the library.
You included the necessary header files with the help of the "-I"
arguments, but you did not link to the library.
Set the directory that contains the import library with "-L", then link to
the library with "-l".
The "-l" argument expects the name of the library without the leading
"lib" and without the extension. If your import library lives in
"/somewhere/libfoo.a", you need the flags "-L/somewhere -lfoo". Place
these at the end of the "gcc" command line.
(On systems with a unix shell, you could use the gdome-config program for
this task.)
Bye, Tobias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]