Mail Archives: djgpp/1999/05/09/05:45:25
On Fri, 7 May 1999 solderer AT my-dejanews DOT com wrote:
> Creating: seritest.exe
> Error: test.o: in funktion 'main':
> test.c(32) Error: undefined reference to 'sio_openport'
> and more like this :-(
This looks like you aren't linking the library into the program, so
the functions defined inside the library aren't found.
I suggest to follow the instructions in the package. Perhaps you are
supposed to use a Makefile and the Make utility, not RHIDE.
> But the mentioned variables are there in the includ file ! I can read them,
> Why cant DJGPP find them ?
The headers do not define the functions, they just declare their
prototypes. The actual code for these functions is in the library,
and you need to tell the linker to use that library.
- Raw text -