Hurro...
Trying to knock up a quick until to manipulate some images in C and have
failed GCC/GD 101 apparently.
This is an etch machine, I'm using gcc 4.1.2, and have libgd-noxpm and
libgd-noxpm-dev installed.
I ran a depmod after apt-get'ing the dev package, and it duna work..
I get the error:
<-------------- Tear here ------------>
[EMAIL PROTECTED]:~/pic$ gcc t.c
/tmp/ccEnAA7m.o: In function `main':
t.c:(.text+0x21): undefined reference to `gdImageCreate'
t.c:(.text+0x2f): undefined reference to `gdImageDestroy'
collect2: ld returned 1 exit status
[EMAIL PROTECTED]:~/pic$
<-------------- Tear here ------------>
>From the test code:
<-------------- Tear here ------------>
#include <gd.h>
#include <stdio.h>
int main() {
gdImagePtr im; // pointer for input image.
im = gdImageCreate(64, 64);
gdImageDestroy(im);
}
<-------------- Tear here ------------>
I'm only an occasional C programmer, so I may have missed the blatantly
obvious with this, and the machine is a new install of etch so I might
be missing something, but I have done a source build of a custom kernel
on it, so I'm assuming gcc is working OK.
Any help much appreciated, google didn't help me much this time
around. :-).