I want make wrapper for another shared library.
elsymobileclient.h
extern void* CreateClass(void);
elsymobileclientwrapper.c
#include <AnswStruct.h>
#include <elsymobileclient.h>
void * W_CreateClass() {
return CreateClass();
}
compile:
$ gcc -I. -L. elsymobileclientwrapper.c -lelsymobileclient
/tmp/ccDxlXsd.o: In function W_CreateClass':
elsymobileclientwrapper.c:(.text+0x7): undefined reference to
CreateClass'
collect2: ld returned 1 exit status
Where's wrong?