Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Newbie wiht xcode/opengl
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="seoushi" data-source="post: 36223"><p><strong>Newbie with xcode/opengl</strong></p><p></p><p>I read a simular thread but it just didn't help me.</p><p></p><p>I'm trying to make a simple opengl program and am following nehe's tutorials. (link to the tutorial <a href="http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=Mac_OS_X" target="_blank">http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=Mac_OS_X</a> ). I just downloaded XCode 1.2 and am new to programing on mac os x (I've done alot of c++ on linux).</p><p></p><p>Anyways I make a new project under xcode, select cocoa app then add glut and opengl frameworks.</p><p></p><p>Then I have copied the code line for line from the tutorial jsut to make sure that it works, but I just get</p><p>[code]</p><p>ZeroLink: unknown symbol '_DrawGLScene'</p><p></p><p>Simple OGL has exited due to signal 6 (SIGABRT).</p><p>[/code]</p><p></p><p>here is my application code</p><p>[code]</p><p>//simple opengl program from nehe mac os tutorial</p><p></p><p>#include <OpenGL/gl.h> // Header File For The OpenGL32 Library</p><p>#include <OpenGL/glu.h> // Header File For The GLu32 Library</p><p>#include <GLUT/glut.h> // Header File For The GLut Library</p><p></p><p>#define kWindowWidth 400</p><p>#define kWindowHeight 300</p><p></p><p>GLvoid InitGL(GLvoid);</p><p>GLvoid DrawGLScene(GLvoid);</p><p>GLvoid ReSizeGLScene(int Width, int Height);</p><p></p><p>int main(int argc, char** argv)</p><p>{</p><p> glutInit(&argc, argv);</p><p> glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);</p><p> glutInitWindowSize (kWindowWidth, kWindowHeight);</p><p> glutInitWindowPosition (100, 100);</p><p> glutCreateWindow (argv[0]);</p><p></p><p> InitGL();</p><p></p><p> glutDisplayFunc(DrawGLScene);</p><p> glutReshapeFunc(ReSizeGLScene);</p><p></p><p> glutMainLoop();</p><p></p><p> return 0;</p><p>}</p><p>[/code]</p><p></p><p>Obviously I've missed a step somewhere, where did I go wrong?</p></blockquote><p></p>
[QUOTE="seoushi, post: 36223"] [b]Newbie with xcode/opengl[/b] I read a simular thread but it just didn't help me. I'm trying to make a simple opengl program and am following nehe's tutorials. (link to the tutorial [url]http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=Mac_OS_X[/url] ). I just downloaded XCode 1.2 and am new to programing on mac os x (I've done alot of c++ on linux). Anyways I make a new project under xcode, select cocoa app then add glut and opengl frameworks. Then I have copied the code line for line from the tutorial jsut to make sure that it works, but I just get [code] ZeroLink: unknown symbol '_DrawGLScene' Simple OGL has exited due to signal 6 (SIGABRT). [/code] here is my application code [code] //simple opengl program from nehe mac os tutorial #include <OpenGL/gl.h> // Header File For The OpenGL32 Library #include <OpenGL/glu.h> // Header File For The GLu32 Library #include <GLUT/glut.h> // Header File For The GLut Library #define kWindowWidth 400 #define kWindowHeight 300 GLvoid InitGL(GLvoid); GLvoid DrawGLScene(GLvoid); GLvoid ReSizeGLScene(int Width, int Height); int main(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); glutInitWindowSize (kWindowWidth, kWindowHeight); glutInitWindowPosition (100, 100); glutCreateWindow (argv[0]); InitGL(); glutDisplayFunc(DrawGLScene); glutReshapeFunc(ReSizeGLScene); glutMainLoop(); return 0; } [/code] Obviously I've missed a step somewhere, where did I go wrong? [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Newbie wiht xcode/opengl
Top