Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sdl questions. this is a basic question
#11
sdl_image and sdl_gfx are extensions to sdl. They have routines that aren't in sdl.dll.
Reply
#12
k. thanks jofer for those links. it had everything that i wanted. 8)
Reply
#13
: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.
Reply
#14
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)
Reply
#15
No. You can also do this:

declare sub mysub lib "mylib" (...etc, etc, etc)
Reply
#16
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.
Reply
#17
thanks rok
ill try out those tips
Reply
#18
the only one it has errors on is when it has sdl_image. any ideas rok?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)