Recent

Author Topic: Why no .so files in fpc folder  (Read 858 times)

rnfpc

  • Full Member
  • ***
  • Posts: 101
Why no .so files in fpc folder
« on: June 24, 2019, 10:26:20 am »
I was just going through /usr/lib/fpc/3.0.0 folder on my Debian Stable Linux system and interestingly found that there are no .so files there. There are .ppu, .o and .rsj files. Why are these files preferred over .so files which are widely used library files in Linux?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11453
  • FPC developer.
Re: Why no .so files in fpc folder
« Reply #1 on: June 24, 2019, 11:06:09 am »
Because our .so are not delivered by the distro in base, like gcc's ?

But maybe it is easier to specify what advantages you exactly expect there?
« Last Edit: June 24, 2019, 11:07:51 am by marcov »

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Why no .so files in fpc folder
« Reply #2 on: June 24, 2019, 05:01:04 pm »
I always thought the difference between a ".o" and a ".so" was (roughly) like that between an ".obj" file and a ".lib" or ".dll" one in windows ... isn't it? I mean, in the sense of a single object file vs. a packed collection of them.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11453
  • FPC developer.
Re: Why no .so files in fpc folder
« Reply #3 on: June 24, 2019, 06:45:22 pm »
I always thought the difference between a ".o" and a ".so" was (roughly) like that between an ".obj" file and a ".lib" or ".dll" one in windows ... isn't it? I mean, in the sense of a single object file vs. a packed collection of them.

No   .o/.a/.so is .obj/.lib/.dll    But .libs and dlls are totally different beasts.

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Why no .so files in fpc folder
« Reply #4 on: June 24, 2019, 06:54:49 pm »
I might add that the compiler is statically linked. .so files are dynamic libraries. Any dependencies for your own projects are resolved elsewhere.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018