Freepascal and binary files? (Developers)
> Does anybody know whether is possible to somehow include files with binary
> data into Freepascal sources?
> It would be nice for things like bundled fonts, icons etc.
> In windows environment is it called "ressources" and the special mechanism
> is established but I mean something different.
Since Delphi uses resources, Free Pascal has generalized them. Since go32v2 uses an internal linker, it might simply support linking .res files. (using {$R x.res} )
The library to access them is fcl-res, which has an own CHM file. Or see it online here: https://www.freepascal.org/docs-html/current/fclres/index.html
It seems to be able to generate Coff .o's.
It won't work for 16-bit targets (msdos,win16) afaik.
I don't have much experience with all of this though. I use them on Windows of course, but afaik I retrieve them over winapi.
Several array generators exist too (bin2obj and data2inc)
Complete thread:
- Freepascal and binary files? - Laaca, 20.05.2020, 23:15 (Developers)
- Freepascal and binary files? - RayeR, 21.05.2020, 01:46
- Freepascal and binary files? - Laaca, 21.05.2020, 10:36
- Freepascal and binary files? - Rugxulo, 21.05.2020, 02:27
- Freepascal and binary files? - marcov, 21.05.2020, 12:25
- Freepascal and binary files? - Laaca, 21.05.2020, 17:30
- Freepascal and binary files? - marcov, 22.05.2020, 13:17
- Freepascal and binary files? - Laaca, 21.05.2020, 17:30
- Freepascal and binary files? - Rugxulo, 31.05.2020, 18:50
- Freepascal and binary files? - CandyMan, 11.06.2020, 12:29
- Freepascal and binary files? - Laaca, 12.06.2020, 07:37
- Freepascal and binary files? - Laaca, 29.10.2021, 00:17
- Freepascal and binary files? - tkchia, 30.10.2021, 07:33
- Freepascal and binary files? - Laaca, 30.10.2021, 12:29
- Freepascal and binary files? - tkchia, 30.10.2021, 19:01
- Freepascal and binary files? - Rugxulo, 28.08.2022, 23:21
- Freepascal and binary files? - tkchia, 30.10.2021, 19:01
- Freepascal and binary files? - Laaca, 30.10.2021, 12:29
- Freepascal and binary files? - tkchia, 30.10.2021, 07:33
- Freepascal and binary files? - RayeR, 21.05.2020, 01:46