gcj: error during genaration of object code (ld cannot find -liconv)

Алексей Любимов alexeipobox@mtu-net.ru
Fri Jun 18 16:02:00 GMT 2004


Hello,
my question is: if I try to run `gcj' without `-C' option then I get the
error from ld:

$cat HelloWorldApp.java

/**
 * The HelloWorldApp class implements an application that
 * simply displays "Hello World!" to the standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); //Display the string.
    }
}

$ gcj HelloWorldApp.java

/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld:
cannot find -liconv
collect2: ld returned 1 exit status

What does this mean? How to avoid the problem?
Note: `$gcj -C HelloWoldApp.java' is Ok and generates HelloWorldApp.class.

Attached please find the output of `cygcheck -c'.
Thank you.
Alexey Lyubimov

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040618/aea488c1/attachment.txt>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list