Jump to content

OpenGL and SDL help


Recommended Posts

Hi, I have two questions that I want to ask.

1. [OPENGL]: I'm trying to compile this opengl program, but I get an error saying that the glut32.lib file won't open; I'm using glut version 3.7.6. I used "implib" on glut32.lib to glut32.dll and it suceeds, but when I compile the program the glut32.lib won't open. Is there a way to fix this problem

2. [sDL]: Is SDL suitable for Borland. I tried placing the SDL.dll in the system32 directory, SDL.lib and SDLmain.lib in the lib directory of the bcc55 (Borland C++ builder command line tools 5.5), and all of the include files in the SDL directory to the include directory of bcc55. Please take a look at this program:

/* -- Include the precompiled libraries -- */

#ifdef WIN32

#pragma comment(lib, "SDL.lib")

#pragma comment(lib, "SDLmain.lib")

#endif

#include <SDL/SDL.h>

int main(int argc, char **argv)

{

printf("\nHello SDL User!\n");

/* initialize SDL */

if ( SDL_Init( SDL_INIT_VIDEO ) < 0 )

{

fprintf( stderr, "Video initialization failed: %s\n",

SDL_GetError( ) );

SDL_Quit( );

}

SDL_Quit( );

return 0;

}

I'm not sure if this would work, any ideas on how to configure SDL using Borland

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy