Linker returns “relocation has an invalid symbol at symbol index…”

后端 未结 5 1974
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 00:03

I am trying out some code on Ubuntu. I\'m trying to run the following code

#include 
#include 

        
5条回答
  •  春和景丽
    2020-12-08 00:36

    The "undefined reference to 'main'" is because you did not define a main() function, which is the entry point of your program:

    int main()
    {
      // call other functions
    }
    

提交回复
热议问题