crt1.o: In function `_start': - undefined reference to `main' in Linux

后端 未结 5 891
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 02:50

I am porting an application from Solaris to Linux

The object files which are linked do not have a main() defined. But compilation and linking is done properly in Sol

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 03:13

    I had similar result when trying to build a new test project with boost, and it turned out that I was missing one declaration :

    #define BOOST_TEST_MODULE 
    

提交回复
热议问题