Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

warning: cannot find entry symbol _start - while compiling to .so

$
0
0

Hello I am running Linux Ubuntu and am compiling using icpc (intel compiler), I want to get a shared library so I used the command:

icpc -o myShared.so -std=c++11 -shared -DSTDC_HEADERS -D __cplusplus=201103L -fpermissive -DPT_XX_DEV -fexceptions -frtti -DANDROID -w -fstack-protector -fPIE -fPIC -pie -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -I/home/admins/aaa/include -I/home/admins/bbb/include a.cpp b.cpp c.cpp $(LIBS)

while libs is a list of shared and static libraries used, 

the interesting thing that if I delete $(LIBS) I am getting the same warning, so in my opinion it probably means that it doesn't link at all....

the warning is:

ld: warning: cannot find entry symbol _start; defaulting to 0000000000007040

I read about this warning in previous topics, and I discovered that this warning connected to the entry point of the program, but as far as I understand - there shouldn't be entry point in shared library.

Does anyone have an idea how to resolve it?

Thank you very much!


Viewing all articles
Browse latest Browse all 1616

Trending Articles