Good morning list,<br><br>I'm trying to use the dhcpctl API to control my dhcp server. However, I can't compile the example in the man page. <br><br>I tried on 2 different machines ( Ubuntu 8.10 and CentOS 5.2 ) with Eclipse and without and I have the same result. <br>
<br> [root@krum tmp]# gcc -o DhcpCtl dhcpctl_test.c <br>/tmp/cc2ldtSO.o: In function `main':<br>dhcpctl_test.c:(.text+0x30): undefined reference to `dhcpctl_initialize'<br>dhcpctl_test.c:(.text+0x48): undefined reference to `dhcpctl_connect'<br>
dhcpctl_test.c:(.text+0x5a): undefined reference to `dhcpctl_new_object'<br>dhcpctl_test.c:(.text+0x92): undefined reference to `omapi_data_string_new'<br>dhcpctl_test.c:(.text+0xb4): undefined reference to `dhcpctl_set_value'<br>
dhcpctl_test.c:(.text+0xc6): undefined reference to `dhcpctl_open_object'<br>dhcpctl_test.c:(.text+0xd3): undefined reference to `dhcpctl_wait_for_completion'<br>dhcpctl_test.c:(.text+0xf7): undefined reference to `dhcpctl_data_string_dereference'<br>
dhcpctl_test.c:(.text+0x109): undefined reference to `dhcpctl_get_value'<br>dhcpctl_test.c:(.text+0x13a): undefined reference to `dhcpctl_data_string_dereference'<br>collect2: ld returned 1 exit status<br><br>Am I missing something obvious here ? <br>
<br>Best regards, <br><br>-- <br>Philippe-Alexandre Lemelin<br>