无法链接共享库

时间:2013-03-14 08:34:20

标签: c shared-libraries

我想为另一个共享库创建包装器。

elsymobileclient.h

extern void* CreateClass(void);

elsymobileclientwrapper.c

#include <AnswStruct.h>
#include <elsymobileclient.h>

void * W_CreateClass() {
  return CreateClass();
}

编译:

$ gcc -I. -L. elsymobileclientwrapper.c -lelsymobileclient

/tmp/ccDxlXsd.o:在函数W_CreateClass': elsymobileclientwrapper.c:(.text+0x7): undefined reference to CreateClass'中 collect2:ld返回1退出状态

哪里错了?

0 个答案:

没有答案
相关问题