SDL final help

Pages: 12
closed account (NUj6URfi)
I redid all the instructions and I got the same errors.
closed account (NUj6URfi)
I changed the code and now I get undefined reference to... anything SDL.
closed account (NUj6URfi)
and WinMain@16
closed account (NUj6URfi)
Bump.
closed account (NUj6URfi)
Bump.
closed account (NUj6URfi)
Bump.
GEEZ, stop bumping each 20 minutes!
try slicing your code to see where the error occurs.
start with something like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <string>
#include "SDL.h"

using namespace std;
int i;

int main(int argc, char* args[]) {
     cout << "Welcome to my movie.";
     i = 1;
     if (i == 1) {
     SDL_Surface* frame1 = NULL;
     SDL_Surface* screen = NULL;
     }

     return 0;

}
Last edited on
closed account (NUj6URfi)
On line 3 I get the error.
closed account (NUj6URfi)
That is because anything SDL can't be found in the headers properly. I posted what can't be found.
i have no idea. better you ask in their forums.
have you tried to build SDL yourself?
Could you try following the instructions in the tutorial exactly? I am being serious when I say I followed the instructions exactly the first time and had the results I expected the first time. I used whatever the latest version of Dev-C++ was on the bloodshed sourceforge download page earlier today. I also download the latest version of the mingw-devel-sdl. The download link for sdl is part of the tutorial and it says where to extract everything and also how to set up your Dev-C++ project. I would recommend SLOWLY reading the tutorial and NOT cutting corners. You are wasting a lot of your time trying to make things "easier". I already mentioned earlier how your include should be #include "SDL/SDL.h" The only time people tend to use the include line without SDL/ is when working with Visual Studio, simply because Visual Studio is usually a special case type of IDE

EDIT: Just as a suggestion 6+ bumps within a timespan of close to two days is at least 5 too many bumps, in my opinion. It is just a silly way of increasing your post count, and takes away the top slot from the most recent question asker. Just please use a bump sparingly.
Last edited on
closed account (NUj6URfi)
I don't care about my post count. I followed the instructions exactly, didn't work, then changed it.
Topic archived. No new replies allowed.
Pages: 12