My"C" Compiled can't compile "{}"

Tim Prince n8tm@aol.com
Mon Dec 28 23:40:00 GMT 2009


Paul McFerrin wrote:
> Well, after all of this discussion, my C compiler IS BROKEN.  I.E.:
> 
> echo "main{}" >test.c
> /usr/local/mysql-5/mysql-5.1.41.$ cc -O test.c
> test.c:1: error: expected =, ,, ;, asm or __attribute__ before { token
> /usr/local/mysql-5/mysql-5.1.41.$ echo "main(){}" >test.c
> /usr/local/mysql-5/mysql-5.1.41.$ cc -O test.c
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: 
> crt0.o: No such file: No such file or directory
> collect2: ld returned 1 exit status
> 
> My suggestion is to completely UNINSTALL C Compiler packages and 
> restalled then.  If others agree, could someome tell me which packages 
> to uninstall?  Your installation may be working, but mine isn't.
> 
>
If I haven't been confused by the abysmal quoting style, you've 
neglected the package find tool on the cygwin home page.  This indicates 
that the base cygwin runtime includes crt0.o (which appears in /usr/lib).

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list