»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-05-2003, 11:58 AM   #1 (permalink)
Registered User
 
Join Date: Apr 2002
Location: Georgia
Posts: 137
Jüš† ä gü¥ is on a distinguished road
Systems SDL and Dev-C++ problem

I can't get SDL to work with Dev-C++

I have copied all of the SDL include files into an SDL subdirectory under Dev-C++'s include directory. I have copied all of the SDL library files into the lib folder of Dev-C++. I copy example code into a testing area, and change all references of including "SDL.h" for example with <SDL/SDL.h>, and I do this with the other SDL header files which are included.

The options I am passing for compilation/linkage are -lmingw32 -lSDLmain -lSDL -mwindows

What happens is it ends up telling me that any of the functions which aren't directly in SDL.h are undefined. Well, so what I then do is I find which headers they are included in, and manually include those in the C file, save, and try again. SAME RESULT!

I cannot even get an executable if I do this from the command prompt, and if I do it through the Dev-C++ GUI, I do get an executable, but it is not functional.

I really think SDL is a good way to go, and I would really like to be able to use it in conjunction with Dev-C++ to make Windows programs.

Any suggestions???

This is very bad.

__________________
Jüš† ä €öm¶ù†Ê® §ÇÌÈñŒ mÅjÒ®
Jüš† ä gü¥ is offline   Reply With Quote
Old 10-05-2003, 11:25 PM   #2 (permalink)
Registered User
 
Join Date: Apr 2002
Location: Georgia
Posts: 137
Jüš† ä gü¥ is on a distinguished road
Okay, here is what I ended up doing.

Instead of first installing Dev-C++ and then downloading the libraries for use with Dev-C++ from the SDL website and manually installing them to the correct locations, I went to the Dev-C++ website under Dev-C++ Resources and then Package Repository page and found a premade package repository there for SDL.

I downloaded that and the runtime, and double-clicked the package to install (extension .DevPak apparantly registered by Dev-C++ program)

Well, then I went to create a new project, saw I had a new option for SDL project this time, chose that, tried to compile, got a small error, looked at the source to find it referenced an include file I never heard of, deleted that, saved, compiled, and ran and it was just fine.

The only problem is you can't use the newest SDL libraries if you do this

I'm still wondering why it didn't work before, using the files obtained from the SDL website, though???
__________________
Jüš† ä €öm¶ù†Ê® §ÇÌÈñŒ mÅjÒ®
Jüš† ä gü¥ is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 02:40 AM.