chicken-janitors
[Top][All Lists]
Advanced

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

Re: #1655: csc: when .c files are supplied and -c is given, the -o optio


From: Chicken Trac
Subject: Re: #1655: csc: when .c files are supplied and -c is given, the -o option has no effect
Date: Tue, 12 Nov 2019 16:54:37 -0000

#1655: csc: when .c files are supplied and -c is given, the -o option has no
effect
-----------------------------------+------------------------------
            Reporter:  kristianlm  |      Owner:  felix winkelmann
                Type:  defect      |     Status:  assigned
            Priority:  major       |  Milestone:  5.2
           Component:  core tools  |    Version:  5.1.0
          Resolution:              |   Keywords:
Estimated difficulty:  easy        |
-----------------------------------+------------------------------

Comment (by felix winkelmann):

 What is the expected behaviour here? You are passing two files but want to
 produce one object file, so I assume you want both to be linked together?
 AFAIK it is not possible to combine multiple .o files in another .o file,
 unless you produce a library (static or dynamic). `gcc`, for example,
 produces this, when given multiple files + the `-c` option:

 `gcc: cannot specify -o with -c or -S with multiple files`

 Perhaps we should produce the same error.

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/1655#comment:3>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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