Mail Archives: djgpp/1997/11/25/07:31:13
On Mon, 24 Nov 1997 23:38:48 -0500 in comp.os.msdos.djgpp Walter Luke <NightWatchman AT Sacrilege DOT com> wrote:
: The following code:
[snipped]
: Returns the error "undefined reference to 'g_set'". The same is true
: of any other call to a function in graph.h. Can someone point me in the
: right direction here?
I'm not sure what graphics library you're using, but you'll need to
link in the library file when creating your executable. Add the
`-l' switch to the linking command line, followed immediately (no
space) by the name of the library file (in your `lib' directory).
This name will be of the form `libxxxxx.a', where `xxxxx' is the name
you'd put after `-l'.
--
Regards,
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -