79488298

Date: 2025-03-06 04:55:17
Score: 0.5
Natty:
Report link

I was using cmake to compile a large c++ project with many dependencies, for the first time, on a new system. With each sub-project, in this case Boost, it would sometimes stop with this error. The solution was to install the development library, e.g. boost-devel (or @development-libs to get them all). They had neglected to mention these were required. But I was paying the price for not installing the full development system.

CMakeFiles/dep_BOOST.dir
conftest.c /usr/bin/ld: /usr/lib64/../lib64/crt1.o: in function `_start':(.text 0x1b): 
undefined reference to `main'
collect2: error: ld returned 1 exit status
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @development-libs
  • Low reputation (0.5):
Posted by: hellork