Recent

Author Topic: Use external libraries?  (Read 1798 times)

mikd

  • New member
  • *
  • Posts: 7
Use external libraries?
« on: March 11, 2016, 06:26:48 pm »
I am modifying a game written in FreePascal and utilizing SDL.

Can I link to a library like this in the code?

http://www.sdltutorials.com/a-guide-to-graphics-with-sprig

Will it work on both Windows and Linux?

benohb

  • Full Member
  • ***
  • Posts: 207
Re: Use external libraries?
« Reply #1 on: March 11, 2016, 07:05:05 pm »
Yes

mikd

  • New member
  • *
  • Posts: 7
Re: Use external libraries?
« Reply #2 on: March 13, 2016, 12:16:18 am »
I'm new to "real" programming. (Normally I just use a scripting language to create little console or GUI tools.) How would I go about linking this library to my program? I am not using an IDE by the way.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 9444
  • FPC developer.
Re: Use external libraries?
« Reply #3 on: March 13, 2016, 12:19:07 am »
You need to translate the "sprig" header, or use SDL directly (for which there are pascal headers)

 

TinyPortal © 2005-2018