[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Linking object files without additional source
From: |
Richard |
Subject: |
Re: [Chicken-users] Linking object files without additional source |
Date: |
Sat, 1 Nov 2014 23:01:43 +0000 |
Hello Mathieu,
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
Make sure you have compiled the object files as library units, see:
http://wiki.call-cc.org/man/4/Using%20the%20compiler#an-example-with-multiple-files
good luck,
Richard
On Sat, 1 Nov 2014 15:38:53 -0400
Mathieu <address@hidden> wrote:
> Hi chicken schemers,
> I want to use csc to link a bunch of .o together:
> csc -c \___ sources/foreign-interfaces/fastcgi.o \___
> sources/foreign-interfaces/sqlite.o \___ -o foreign-interfaces.o But
> this command does not produce any outputunless a specify at least
> one .scm file. How could I get foreign-interfaces.o as a resultof
> only linking fastcgi.o and sqlite.o? Thanks for your help,Mathieu
>