Strange error from Visual C++ with SDL_Config.h

This is a discussion on Strange error from Visual C++ with SDL_Config.h within the C++ Programming forums, part of the General Programming Boards category; I have been using just SDL for alot, but it really olny does 2d things well. So I started learning ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    76

    Strange error from Visual C++ with SDL_Config.h

    I have been using just SDL for alot, but it really olny does 2d things well. So I started learning OpenGL from the tutorials at That was just the website but I edited tha link. http://anomtech.uuuq.com/index.php I was fine using Dev-C++ until the textures tutoiral, where the program would immedently crash as soon as I compiled/started it. So the maker of the tutourals used Visual C++ so I got it thinking that would solve my problem. I got it, put all the SDL related header files I could find into include about four .a files into the lib folder downloaded his source zip file, and opened his .vcproj file. When I tryed to compile I got this error: c:\program files\microsoft visual studio 9.0\vc\include\sdl\sdl_config.h(34) : fatal error C1189: #error : You should copy include/SDL_config.h.defaut

    So it won't run/compile and I'm stuck.




    (It's visual C++ 2008 express edition)
    Last edited by azjherben; 08-02-2009 at 09:18 PM.

  2. #2
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    gcc's .a files will probably not work with MSVS. Its sounds like you've not properly copied sdl_config.h, or you're missing some other file.

    However, the compiler is not your problem. You code crashes because there is a bug it in -- that bug will be there regardless of your compiler.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    76
    Quote Originally Posted by Cactus_Hugger View Post
    gcc's .a files will probably not work with MSVS. Its sounds like you've not properly copied sdl_config.h, or you're missing some other file.

    However, the compiler is not your problem. You code crashes because there is a bug it in -- that bug will be there regardless of your compiler.



    I highly doubt the person writing the tutoirals would have a fatal error in his program and just post it anyway. And I'm now using his exact code. (I stopped trying to use what I had to that point)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 07:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21