home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

SDL and Dev-C++ problem

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1527
Discussions: 200,953, Posts: 2,379,481, Members: 246,323
Old October 5th, 2003, 02:58 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Apr 2002
Location: Georgia
Posts: 137
Unhappy
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 October 6th, 2003, 02:25 AM     #2 (permalink)
Member
 
Join Date: Apr 2002
Location: Georgia
Posts: 137
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üš† ä gü¥ is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2943)
The disrespect of Obama by Russian .. (41)
Making Health Care Worse (178)
Wireless Televisions. (12)
CPU fan stops spinning randomly (9)
Regular Build (11)
windows 7 problem (7)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (6)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (10)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Recent Discussions
i sell good stuffs cc cvv2 track bank.. (0)
Laptop with wireless problem. (4)
tv not turn on-makes clicking sound (2)
SELLING FRESH,CVV,LOGINS,DUMPS,TRACKS.. (0)
CPU fan stops spinning randomly (9)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Modern Warfare 2: Who Bought It? (63)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Internet Lost (3)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)
windows vista security holes (10)
Point and Shoot Camera Suggestions. (4)
Multiple Restarts Required at Boot (2)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Hp Artist Edition + Matching Bag (0)
Asus P4G8X Mobo (6)
Xbox 360 GTA: SA disk error (1)


All times are GMT -4. The time now is 05:18 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28