Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: OS X OpenGL Failure  (Read 2574 times)

0 Members and 1 Guest are viewing this topic.

Jalfor

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
OS X OpenGL Failure
« on: March 11, 2013, 01:17:31 pm »
SFML Works when I don't use OpenGL but when I do I get this error:

Undefined symbols for architecture x86_64:
  "_glClear", referenced from:
      _main in main.o
  "_glViewport", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am using the default template with XCode 4.6 (although I've switched off C++11 because that made it break) and I used the example code from the "A typical OpenGL-with-SFML program" here: http://sfml-dev.org/tutorials/2.0/window-opengl.php

Thanks for any help
If a picture tells 1000 words, then a YouTube video clearly tells 1000000 making a YouTube video obviously a larger work than the Lord Of The Rings, or some other massive novel. Thus are the laws of YouTube videos.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: OS X OpenGL Failure
« Reply #1 on: March 11, 2013, 01:28:54 pm »
If you use OpenGL, you must link your app to the OpenGL framework/library.
Laurent Gomila - SFML developer

Jalfor

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: OS X OpenGL Failure
« Reply #2 on: March 12, 2013, 08:12:41 am »
That worked, Thanks.
If a picture tells 1000 words, then a YouTube video clearly tells 1000000 making a YouTube video obviously a larger work than the Lord Of The Rings, or some other massive novel. Thus are the laws of YouTube videos.

 

anything