This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: My"C" Compiled can't compile "{}"
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 28 Dec 2009 04:09:54 +0000
- Subject: Re: My"C" Compiled can't compile "{}"
- References: <4B381883.7030002@columbus.rr.com>
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