dimanche 28 décembre 2014

undefined reference to main in code blocks

A bit of the backstory: I first used Eclipse but it had trouble resolving namespace std so I switched to code::blocks and now I'm having this problem.


Everything went through debugging just fine except for one error: In function '_start': undefined reference to 'main' (.text+0x20). However, I have the main() defined and there's nothing fancy in it.


code::blocks version: 13.12 compiler: GNU gcc, have the g++ follow c++11


Thanks in advance.


Aucun commentaire:

Enregistrer un commentaire