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

后端 未结 5 1970
伪装坚强ぢ
伪装坚强ぢ 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:45

    You have typed wrong command for g++. You should have typed something like:

    g++ file_name random.cpp
    

    You need to name output file. Otherwise it's like "g++ syntax error".

提交回复
热议问题