07-26-2005, 10:06 AM
sdl_image and sdl_gfx are extensions to sdl. They have routines that aren't in sdl.dll.
sdl questions. this is a basic question
|
07-26-2005, 10:06 AM
sdl_image and sdl_gfx are extensions to sdl. They have routines that aren't in sdl.dll.
07-26-2005, 08:51 PM
k. thanks jofer for those links. it had everything that i wanted. 8)
07-27-2005, 04:06 AM
:x
everything is working fine with all the examples. but they only work when it is saved under c:\freebasic\examples\sdl. also, it only works when its compiled there also. other wise it says fb has encountered an error and closed. can someone tell me how to fix this. sorry if its a stupid question.
07-27-2005, 10:17 AM
I'm not sure about this since I rarely use libraries, but don't you have to use #inclib "LIBRARY" in your source or add -lLIBRARY in your compile command line or something? Of course, they could automatically be used in the #include files, so I'm not sure. . .
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
07-27-2005, 11:51 AM
No. You can also do this:
declare sub mysub lib "mylib" (...etc, etc, etc)
07-28-2005, 07:24 AM
Try just putting SDL.DLL (and any extensions you might bump into) in the same folder as the .bas file. I have SDL.DLL in my System and System32 folders as well, but apparently, it's still searching in the main folder. There might be an option somewhere in FB, or a directory file that you can edit, but if you just want it to work, copy-and-pasteing the DLL in the folder shouldn't be that much of a problem.
Hopefully that might've solved your problem.
07-28-2005, 08:38 AM
thanks rok
ill try out those tips
07-29-2005, 02:13 AM
the only one it has errors on is when it has sdl_image. any ideas rok?
|
« Next Oldest | Next Newest »
|