Hello, The file crt2.o is present in /usr/lib/mingw. But the error remains the same.
[EMAIL PROTECTED] ~ $ gcc -mno-cygwin hello.c /usr/bin/ld: crt2.o: No such file: No such file or directory collect2: ld returned 1 exit status I also found that I get another error if I compile the program from within the directory /usr/lib/mingw .See this: [EMAIL PROTECTED] /usr/lib/mingw $ gcc -mno-cygwin ~/hello.c /usr/bin/ld: cannot find -lmingw32 collect2: ld returned 1 exit status ~ Thomas On 1/12/07, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote:
Thomas Antony wrote: > Hello, > Come to think of it, I had removed the read only stuff when it > drove me nuts with silly errors when I tried to delete or move files. > But not on C drive. Anyway, I removed those links using the script you > said and reinstalled. Now ls lists them correctly > > $ ls -l /usr/lib/gcc/i686-pc-mingw32/3.4.4/ > total 1234 > lrwxrwxrwx 1 Tom None 34 Jan 12 09:34 cc1.exe -> > ../../i686-pc-cygwin/3.4 > .4/cc1.exe > lrwxrwxrwx 1 Tom None 38 Jan 12 09:32 cc1plus.exe -> > ../../i686-pc-cygwin > /3.4.4/cc1plus.exe > lrwxrwxrwx 1 Tom None 39 Jan 12 09:34 collect2.exe -> > ../../i686-pc-cygwi > n/3.4.4/collect2.exe > -rwxr-xr-x 1 Tom None 412 May 24 2005 crtbegin.o > -rwxr-xr-x 1 Tom None 492 May 24 2005 crtend.o > drwxrwxr--+ 2 Tom Users 0 Jan 12 09:32 debug > drwxrwxr--+ 3 Tom Users 0 Jan 12 09:34 include > drwxrwxr--+ 3 Tom Users 0 Jan 12 09:34 install-tools > -rwxr-xr-x 1 Tom None 52594 May 24 2005 libgcc.a > -rwxr-xr-x 1 Tom None 9772 May 24 2005 libgcov.a > -rwx------+ 1 Tom None 1063604 May 24 2005 libstdc++.a > -rwx------+ 1 Tom None 685 May 24 2005 libstdc++.la > -rwx------+ 1 Tom None 116074 May 24 2005 libsupc++.a > -rwx------+ 1 Tom None 685 May 24 2005 libsupc++.la > lrwxrwxrwx 1 Tom None 32 Jan 12 09:34 specs -> > ../../i686-pc-cygwin/3.4.4 > /specs > > But now, while compiling I get the error > $ gcc -mno-cygwin -o hello hello.c > /usr/bin/ld: crt2.o: No such file: No such file or directory > collect2: ld returned 1 exit status > > ?? > > Now what? > Is crt2.o in /usr/lib/mingw? Does it look OK? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/
-- 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/