我有一个这样的 C++ .so 文件结构:(动态库)
Folder 1 (.d and .o extention files)
Folder 2 (.d and .o extention files)
Folder 3 (.d and .o extention files)
processsignal.so
makefile
objects
sources...
你们知道如何编译和运行上面的文件吗,我尝试编译.so并运行了makefile,但它仍然是一个错误:
make:
make: Nothing to be done for `Cartographie/ProcessingFit.d'.
G++编译:
g++ libsignalProcessing.so
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status