This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

java/2631: Compilation-only ( -c ) of multiple source files into one output file is not possible.



>Number:         2631
>Category:       java
>Synopsis:       Compilation-only ( -c ) of multiple source files into one output file is not possible.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 24 17:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     feliks@solidum.com
>Release:        2.95.3
>Organization:
>Environment:

>Description:
http://gcc.gnu.org/onlinedocs/gcj_2.html#SEC4 states:

 You can specify more than one input file on the gcj
 command line, in which case they will all be compiled.
 If you specify a -o FILENAME option, all the input files
 will be compiled together, producing a single output file,
 named FILENAME. This is allowed even when using -S or -c,
 but not when using -C. (This is an extension beyond the
 what plain gcc allows.) (If more than one input file is
 specified, all must currently be .java files, though we
 hope to fix this.)

When you try to do this:

  gcj -c -o jlib.oo Main.java version.java 

you get the message

 gcj: cannot specify -o with -c or -S and multiple compilations

and no output.



>How-To-Repeat:
gcj -c -o jlib.oo Main.java version.java 
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]