Results 1 to 2 of 2

Thread: Visual Studio 2008 Settings

  1. #1

    Default Visual Studio 2008 Settings

    Can someone please help me with getting my settings for Visual Studio 2008 correct? I have a test program but it is not working:

    Code:
    #include <ClanLib\gl.h>
    #include <ClanLib\application.h>
    #include <ClanLib\core.h>
    #include <ClanLib\display.h>
    #include <ClanLib\sound.h>
    
    class cClanLibApp : public CL_ClanApplication
    {
    public:
    	cClanLibApp();
    	~cClanLibApp();
    	virtual int main(int, char **)
    	{
    		CL_SetupCore setup_core;
    		CL_SetupDisplay setup_display;
    		CL_SetupGL setup_gl;
    		CL_SetupSound setup_sound;
    		CL_DisplayWindow window("test", 640, 480);
    
    		while(!CL_Keyboard::get_keycode(CL_KEY_ESCAPE)
    		{
    			CL_Display::clear(CL_Color(0,0,0,255);
    			UpdateFrames();
    			CL_Display::flip();
    			CL_System::sleep(10);
    			CL_System::keep_alive();
    		}
    		return 0;
    	}
    }app;
    I get an error saying it cannot open include file 'pthread.h'. Since I am doing it with Win32, it shouldn't even be trying to link that particular header file.

    Thanks, Chris

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Check out the example projects (in the source code package)

    For some reason, you are not defining WIN32 in the preprocessor definitions. I guess, there probably are other things not set correctly.

    There is http://clanlib.org/wiki/MainDocs:Vis...ur_application , but that's for visual studio 2010

Similar Threads

  1. Visual Studio .NET
    By alexv1 in forum Official ClanLib SDK Forums
    Replies: 23
    Last Post: 06-10-2009, 05:36 PM
  2. Clanlib 0.8.1 & Visual Studio 2008 Breakpoints
    By Angelo in forum Official ClanLib SDK Forums
    Replies: 7
    Last Post: 04-17-2009, 06:25 PM
  3. Help in Installing Clanlib [Visual 2008]
    By AndrewFM in forum Official ClanLib SDK Forums
    Replies: 11
    Last Post: 11-05-2008, 03:42 AM
  4. Visual Studio Express c++ 8 help ??
    By babyvegas in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 06-19-2008, 07:11 AM
  5. Replies: 0
    Last Post: 10-16-2007, 04:44 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •