Hi,
I'm trying to write a simple test program to make some calls to a Phidgets board. I have the test app in a directory and the Phidgets files in a subdirectory. my include in my app looks like
Code:
#include "phidget21/phidget21.h"
and phidget21.h is in the subdirectory with the functions I call defined. When I go to make my program I get several undefined references.
Code:
root@desktop:/home/Coro# gcc -o test test.c -I${PWD}/phidget21
/tmp/cc68a4cW.o: In function `main':
test.c:(.text+0xed): undefined reference to `CPhidgetInterfaceKit_create'
test.c:(.text+0x100): undefined reference to `CPhidget_open'
test.c:(.text+0x114): undefined reference to `CPhidget_getDeviceStatus'
test.c:(.text+0x139): undefined reference to `CPhidgetInterfaceKit_getSensorValue'
test.c:(.text+0x153): undefined reference to `CPhidgetInterfaceKit_getSensorValue'
test.c:(.text+0x16d): undefined reference to `CPhidgetInterfaceKit_getSensorValue'
test.c:(.text+0x187): undefined reference to `CPhidgetInterfaceKit_getSensorValue'
test.c:(.text+0x1a1): undefined reference to `CPhidgetInterfaceKit_getSensorValue'
/tmp/cc68a4cW.o:test.c:(.text+0x1bb): more undefined references to `CPhidgetInterfaceKit_getSensorValue' follow
collect2: ld returned 1 exit status
As I said earlier, all these functions are defined the phidget21.h which is located in the subdirectory...
Thanks for looking,
Chris