(no subject)
Brought to you by:
aeb,
bencollins
From: Pieter W. <Pieter.Willems@FillFactory.com> - 2003-04-02 14:55:02
|
Hello, =20 I'm starting to write a FireWire program under linux. As I am very new to programming under linux in general, I'm starting with a very simple test program. In this program I want to create a handle associated with the firewire device and get the portinfo. The code as i tried it is displayed here: =20 #ifdef HAVE_CONFIG_H #include <config.h> #endif =20 #include <errno.h> #include <string.h> #include <stdlib.h> =20 #include <stdio.h> #include <libraw1394/raw1394.h> //#include <libraw1394/csr.h> =20 int main(int argc, char *argv[]) { //printf("Hello, world!\n"); int numcards; struct raw1394_portinfo pinf[16]; raw1394handle_t handle; handle =3D raw1394_new_handle(); numcards =3D raw1394_get_port_info(handle, pinf, 16); return EXIT_SUCCESS; } =20 I am using KDevelop on a SuSE 8.1 prof. distribution. When I compile this code I get the following compile error: =20 main.o: In function `main':=20 /root/isotraffic/isotraffic/main.c:37: undefined reference to `raw1394_new_handle'=20 /root/isotraffic/isotraffic/main.c:38: undefined reference to `raw1394_get_port_info'=20 collect2: ld returned 1 exit status=20 gmake[3]: *** [isotraffic] Error 1=20 gmake[3]: Leaving directory `/root/isotraffic/isotraffic'=20 gmake[2]: Leaving directory `/root/isotraffic/isotraffic'=20 gmake[2]: *** [all-recursive] Error 1=20 gmake[1]: *** [all-recursive] Error 1=20 gmake[1]: Leaving directory `/root/isotraffic'=20 gmake: *** [all] Error 2=20 *** failed ***=20 =20 It could be that I am doing something very stupid, but hey, can you blame a newbie!? If you need more info to solve this problem just let me know.=20 =20 Thanks in advance! =20 Pieter |