Skip to content

Instantly share code, notes, and snippets.

@inspire365
inspire365 / gist:c9ae5da78b947cd513ec6778f6e2a2c7
Last active August 22, 2017 11:47
how to fix: collect2: ld returned 1 exit status
Today, I encoutner an error:
~~
Linking CXX executable ../bin/my_program_d
collect2: ld returned 1 exit status
make[2]: *** [../bin/my_program_d] Error 1
make[1]: *** [CMakeFiles/my_program_d.dir/all] Error 2
make: *** [all] Error 2
~~