chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Linking object files without additional source


From: Thomas Chust
Subject: Re: [Chicken-users] Linking object files without additional source
Date: Sun, 2 Nov 2014 15:54:22 +0100 (CET)
User-agent: Alpine 2.03 (LNX 1266 2009-07-14)

On Sat, 1 Nov 2014, Richard wrote:

[...]
That is not how you link objects files.
You could create an archive for this purpose using:

ar rc foreign-interfaces.a sources/foreign-interfaces/fastcgi.o
sources/foreign-interfaces/sqlite.o
[...]

Hello,

if your linker supports that, it may also be possible to recombine multiple objects into a single relocatable output. With GNU ld you could do

  ld --relocatable \
  sources/foreign-interfaces/fastcgi.o \
  sources/foreign-interfaces/sqlite.o \
  -o foreign-interfaces.o

However, the CHICKEN compiler driver only directly supports linking things together into dynamic libraries or executables.

Ciao,
Thomas


--
When C++ is your hammer, every problem looks like your thumb.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]