undefined reference to `__gxx_personality_sj0`

前端 未结 5 2307
余生分开走
余生分开走 2020-11-27 18:17

With gcc 4.6 when trying to execute this code:

   #include 

using namespace std;

#include 

int main()
{
   //Int<> a         


        
5条回答
  •  伪装坚强ぢ
    2020-11-27 19:10

    Just in case anyone else has this problem: I changed compilers AFTER creating .o files for my project.

    When I rebuilt the same project, the new compiler didn't build new .o files, so they were missing some key info. After deleting the old files and rebuilding, the error was fixed.

    I assume rebuilding from scratch, without the delete, would work the same.

提交回复
热议问题