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

Author Topic: can't compile first tutorial on intel macbook pro (xcode)  (Read 2393 times)

0 Members and 1 Guest are viewing this topic.

seb.dd

  • Newbie
  • *
  • Posts: 12
    • View Profile
can't compile first tutorial on intel macbook pro (xcode)
« on: October 26, 2009, 05:28:58 pm »
this is the code:
Code: [Select]

////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Window.hpp>


////////////////////////////////////////////////////////////
/// Entry point of application
///
/// \return Application exit code
///
////////////////////////////////////////////////////////////
int main()
{
    // Create the main window
    sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");

    // Start main loop
    bool Running = true;
    while (Running)
    {
        App.Display();
    }

    return EXIT_SUCCESS;
}


i get 220 preprocessor and compiler errors. first in the list is:
Quote
Config.hpp:122:19: error: climits: No such file or directory


in case the crt library is not linked correctly. how do i do it manually?
may be some of the million project build settings must be adjusted,
but the starting tutorial alone doesn't do it...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
can't compile first tutorial on intel macbook pro (xcode)
« Reply #1 on: October 26, 2009, 06:31:50 pm »
It looks like your compiler is not properly configured, i.e. the headers of the standard library are not found.
Laurent Gomila - SFML developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
can't compile first tutorial on intel macbook pro (xcode)
« Reply #2 on: October 26, 2009, 06:40:44 pm »
Maybe you haven't check a box or uncheck the wrong box in Xcode installation wizard. Try to reinstall it, for me it worked without configuring anything in the billion item of the project build settings list.
SFML / OS X developer

seb.dd

  • Newbie
  • *
  • Posts: 12
    • View Profile
can't compile first tutorial on intel macbook pro (xcode)
« Reply #3 on: October 26, 2009, 07:47:06 pm »
setting the project's active sdk from "Use Base SDK" to "Mac OS X 10.6" solved the problem,
though i don't know what exactly the difference is and whether this is a good solution :)

 

anything