Pasting bash commands in cygwin terminal does not execute it till the enter key is pressed
I upgraded my cygwin install recently on my windows 10 machine. CYGWIN_NT-10.0-19044 DESKTOP-CTVRG06 3.3.5-341.x86_64 2022-05-13 12:27 UTC x86_64 Cygwin When pasting the following commands into the cygwin terminal: echo 1 echo 2 echo 3 I get the text appearing on the cygwin terminal, highlighted, and just sitting there. When I hit the enter key, these commands proceed to execute. Is anyone else seeing this? /Mauro -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
RE: Java hello world link error
Thank you for the suggestion. Here is what I get. $ gcj Test.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 Mauro -Original Message- From: Tim Prince [mailto:[EMAIL PROTECTED] Sent: Sunday, December 21, 2003 10:39 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Java hello world link error At 08:04 PM 12/20/2003, mauro zallocco wrote: Folks, I installed gcc-java on Windows XP, and am attempting to compile: class Test { public static void main(String argv[]) { System.out.println(Hello World); } } with the following command: g++ Test.java This produces a gazillion link errors, a sample follows: /cygdrive/c/DOCUME~1/mzallocc/LOCALS~1/Temp/ccywNFar.o(.text+ 0x2d):Test.java : undefined reference to `__Jv_InitClass' /cygdrive/c/DOCUME~1/mzallocc/LOCALS~1/Temp/ccywNFar.o(.text+ 0x37):Test.java : undefined reference to `java::lang::System::out' /cygdrive/c/DOCUME~1/mzallocc/LOCALS~1/Temp/ccywNFar.o(.text+ 0x5f):Test.java : undefined reference to `java::lang::Object::Object[in-charge]()' /cygdrive/c/DOCUME~1/mzallocc/LOCALS~1/Temp/ccywNFar.o(.text+ 0xc8):Test.java : undefined reference to `__Jv_RegisterClass' Why not start out by linking it as a java program, with gcj, rather than as C++ ? Tim Prince -- 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/
Re: Java hello world link error
Jon, installing libiconv and using --main=Test did the trick. Thanks. I looked at http://gcc.gnu.org/java/ and found http://www.linuxjournal.com/article.php?sid=4860 which discusses compiling java. One last thing. I noticed that the resulting Test.exe attempts to access the internet. Is this expected ? Its trying to access 24.25.4.107 which my getHost tool tells me is rlghnc-dns-cac-02-dmfe1.nc.rr.com. Mauro mauro zallocco wrote: $ gcj Test.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 Jon A. Lambert at alltel dot net You probably need to install one or both of these: $ cygcheck -c | grep iconv libiconv1.9.1-3OK libiconv2 1.9.1-3OK Test.java class Test { public static void main(String argv[]) { System.out.println(Hello World); } } /Mauro -- 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/
Java hello world link error
Folks, I installed gcc-java on Windows XP, and am attempting to compile: class Test { public static void main(String argv[]) { System.out.println(Hello World); } } with the following command: g++ Test.java This produces a gazillion link errors, a sample follows: /cygdrive/c/DOCUME~1/mzallocc/LOCALS~1/Temp/ccywNFar.o(.text+0x2d):Test.java : undefined reference to `__Jv_InitClass' /cygdrive/c/DOCUME~1/mzallocc/LOCALS~1/Temp/ccywNFar.o(.text+0x37):Test.java : undefined reference to `java::lang::System::out' /cygdrive/c/DOCUME~1/mzallocc/LOCALS~1/Temp/ccywNFar.o(.text+0x5f):Test.java : undefined reference to `java::lang::Object::Object[in-charge]()' /cygdrive/c/DOCUME~1/mzallocc/LOCALS~1/Temp/ccywNFar.o(.text+0xc8):Test.java : undefined reference to `__Jv_RegisterClass' Poking around I managed the following: $ gcc -I /usr/include/java/util/jar Test.java /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text +0x7 c): undefined reference to [EMAIL PROTECTED]' collect2: ld returned 1 exit status What do I need to include to resolve [EMAIL PROTECTED] ? Mauro /Mauro -- 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/