simple program with svgalib = no compile?
why dose this no compile?
Code:
#include <stdlib.h>
#include <vga.h>
int main(void)
{
vga_init();
vga_setmode(G320x200x256);
vga_setcolor(4);
vga_drawpixel(10, 10);
vga_setmode(TEXT);
return EXIT_SUCCESS;
}
here is the output:
make all-recursive
Making all in src
mv -f .deps/svglib.Tpo .deps/svglib.Po
/bin/bash ../libtool --tag=CXX --mode=link g++ -O0 -g3 -o svglib svglib.o
g++ -O0 -g3 -o svglib svglib.o
svglib.o: In function `main':
6: undefined reference to `vga_init'
:7: undefined reference to `vga_setmode'
:8: undefined reference to `vga_setcolor'
:9: undefined reference to `vga_drawpixel'
:11: undefined reference to `vga_setmode'
collect2: ld returned 1 exit status
make[2]: *** [svglib] Error 1
make[2]: Target not remade because of errors.
make[2]: Nothing to be done for `all-am'.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Exited with status: 2 ***