Sign in to follow this  
Nacho

Problems compiling SDL from source in VC Express 2005

Recommended Posts

Nacho    205
Hello there! As the subject from this thread saids, I´m trying to compile the SDL sources in VC++ Express 2005, but the compiler refuses to build the library since it cannot find the strings.h header, which is included by SDL_stdinc.h. I don´t have that header in my computer so I googled for it and found quite a few different versions (some of them even contained C++ code). Does anyone know which one should I use? Thanks in advance, --Nacho

Share this post


Link to post
Share on other sites
Perost    332
I looked at the source, and SDL_stdinc.h only include strings.h if HAVE_STRINGS_H is defined. So you have most likely configured something wrong, since you seem to have HAVE_STRINGS_H defined, but you don't have strings.h.

Why are you trying to compile it from source anyway? Can't you use the already compiled development library?

Share this post


Link to post
Share on other sites
Nacho    205
Quote:
Original post by Perost
I looked at the source, and SDL_stdinc.h only include strings.h if HAVE_STRINGS_H is defined. So you have most likely configured something wrong, since you seem to have HAVE_STRINGS_H defined, but you don't have strings.h.

Why are you trying to compile it from source anyway? Can't you use the already compiled development library?


The constant HAVE_STRINGS_H is automatically defined by some other header. I´m compiling the whole library from source since I have the exact same problems when using the precompiled version. Not only I´m having problems with strings.h, but also with inttypes.h.

When using the precompiled library, I kinda fixed the problem by commenting out both #includes and redefining a few typedefs that were supposed to be defined in inttypes.h, but I´d like to know if there´s a "cleaner" solution to my problem.

--Nacho

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this