SDL final help

Pages: 12
Jul 20, 2013 at 5:03pm
closed account (NUj6URfi)
I redid all the instructions and I got the same errors.
Jul 20, 2013 at 5:26pm
closed account (NUj6URfi)
I changed the code and now I get undefined reference to... anything SDL.
Jul 20, 2013 at 5:34pm
closed account (NUj6URfi)
and WinMain@16
Jul 20, 2013 at 6:27pm
closed account (NUj6URfi)
Bump.
Jul 20, 2013 at 7:05pm
closed account (NUj6URfi)
Bump.
Jul 20, 2013 at 7:16pm
closed account (NUj6URfi)
Bump.
Jul 20, 2013 at 7:33pm
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 Jul 20, 2013 at 7:33pm
Jul 20, 2013 at 8:01pm
closed account (NUj6URfi)
On line 3 I get the error.
Jul 20, 2013 at 8:02pm
closed account (NUj6URfi)
That is because anything SDL can't be found in the headers properly. I posted what can't be found.
Jul 20, 2013 at 8:19pm
i have no idea. better you ask in their forums.
have you tried to build SDL yourself?
Jul 21, 2013 at 4:19am
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 Jul 21, 2013 at 4:26am
Jul 21, 2013 at 12:12pm
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