Carworld - Wont load SDL_keysym.h

Hello.

I’ve recently found a great game, called Carworld. This is exactly what I was looking for for the past few years, but recently, I’ve had a problem when coming to insert a missing file for the SDL.

I opened up the carworld SRC, and when i compiled I got these errors:

Code:
c:\projects\cargame\src\h_keys.h(8) : fatal error C1083: Cannot open include file: ‘SDL_keysym.h’: No such file or directory

etc…

I then relized that I need that file, so I went ahead and downloaded SDL. I went into the folder include and got the missing file which was… SDL_keysym.h

I then copied the file into the SRC folder where all of the carworld source files where. Then I re-opened the project, and went into the SDL folder in the carworld project, and then right clicked on the folder, then went to add, then to Add Existing Item. and then found the file SDL_keysym.h and selected Add. Then it closed the dialog box, then I saw the file in the SDL folder, so hopefully, I went to build the project again, and It came up with the same errors. Why is it doing this? I told it where the file was…

Can anybody help me?

Kind Regards,

Owen.

The problem you have is that the preprocessor doesn’t see the file. I don’t
know what IDE you’re using, so I can’t help you add the correct folder to
your compiler search directories. One way to fix it is to put SDL_keysym.h
into the same directory as the source files which include h_keys.h (I assume
that would be c:\projects\cargame\src). Another possible way to fix it is
to replace “SDL_keysym.h” with “SDL.h”. SDL.h includes SDL_events.h, which
includes SDL_keyboard.h, which includes SDL_keysym.h. Though if the
preprocessor isn’t finding SDL_keysym.h, it might not find SDL.h (make sure
your compiler search paths are right).

Jonny DOn Sun, Dec 27, 2009 at 10:43 AM, owen_a wrote:

Hello.

I’ve recently found a great game, called Carworld. This is exactly what I
was looking for for the past few years, but recently, I’ve had a problem
when coming to insert a missing file for the SDL.

I opened up the carworld SRC, and when i compiled I got these errors:

Code:

c:\projects\cargame\src\h_keys.h(8) : fatal error C1083: Cannot open
include file: ‘SDL_keysym.h’: No such file or directory

etc…

I then relized that I need that file, so I went ahead and downloaded SDL. I
went into the folder include and got the missing file which was…
SDL_keysym.h

I then copied the file into the SRC folder where all of the carworld source
files where. Then I re-opened the project, and went into the SDL folder in
the carworld project, and then right clicked on the folder, then went to
add, then to Add Existing Item. and then found the file SDL_keysym.h and
selected Add. Then it closed the dialog box, then I saw the file in the SDL
folder, so hopefully, I went to build the project again, and It came up with
the same errors. Why is it doing this? I told it where the file was…

Can anybody help me?

Kind Regards,

Owen.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org