Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   Undefined symbols _main (http://www.mac-forums.com/forums/os-x-development-darwin/301599-undefined-symbols-_main.html)

polyfrag 07-28-2013 02:02 AM

Undefined symbols _main
 
I'm trying to make an OpenGL command-line application following the NeHe tutorials.

I defined main(...) in wemain.mm but it says the symbol is undefined. Why isn't it compiling that file? When I put it in wecontroller.mm it read it but then it said NSApplicationMain was undefined that I was calling from main(...).

polyfrag 07-28-2013 02:52 AM

Oh, I had to add the files to Compile Sources in Build Phases.


All times are GMT -4. The time now is 02:12 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.