我假设我在使用dlopen时不必链接到共享库。然而,在cmake的target_link_libraries(main_dlopen dl)导致链接错误 main_dlopen.cpp.o: In function `main':
main_dlopen.cpp:25: undefined reference to `ntclass::init(char const*)'
etc...
如
安装共享库,我不能安装在Ubuntu this library,或至少编译.cpp库链接到它。我已经完成了Google和StackOverflow的所有答案。 好吧,首先我运行cmake,之后运行make(和make install可以肯定)。不过,如果我运行g++ xxx.cpp -lcrb -o test,则会出现此错误:fatal error: CRNB.h: No such file or
在glibc(也EGLIBC我相信),该libc.so库有main()方法的共享库: $ /lib/i386-linux-gnu/libc.so.6
GNU C Library (Debian GLIBC 2.19-18+deb8u1) stable release version 2.19, by Roland McGrath et al.
Copyright (C) 2014 Free S