This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Dave Korn wrote:
Paul McFerrin wrote:
I discover my C compiler is broken while performing a "configure".

The compiler is fine.


$ echo "{}" >test.c

Your testcase is nonsense.


$ cc -O test.c -o test
test.c:1: error: expected identifier or ‘(’ before ‘{’ token

The compiler correctly told you so. What were you expecting? (Also, what is 'cc'? Softlink perhaps?)

    cheers,
      DaveK

--
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



-- 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


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