GCC g++ error using classes
Dose anyone know what this means??? I sure don't
Code:
g++ VideoClassTypeburnett6.cpp |
It means that you don't have a main function in VideoClassTypeburnett6.cpp. At least that is my best guess looking at the message.
Usually when you compile a project at least one of the functions has a main somewhere which gets the ball rolling so to speak. It isn't that each cpp file needs a main, but when it links it and tries to make an executable from it the compiler needs to know where to start. Read your compiler manual. It'll tell you all sorts of nice things like how to just build object files. In this case you probably want g++ -c VideoClassTypeburnett6.cpp though I would also recommend you use the -Wall and -pedantic option. |
Thanks jtshaw
|
All times are GMT -5. The time now is 07:02 AM. |