www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
X-Authority-Analysis: | v=1.0 c=1 a=Wc6RQVGp22kA:10 a=w_pzkKWiAAAA:8 a=JZdc1htNYUmEdFzLvjsA:9 a=TxHNF0D8b9IARGn4smMA:7 a=27syM2Ajj8WEeS_VV6DT5MWiuuYA:4 a=buB1NfXUTBUA:10 a=IfQ-iFkkCvMA:10 |
Message-ID: | <4B38CE32.4070709@columbus.rr.com> |
Date: | Mon, 28 Dec 2009 10:26:42 -0500 |
From: | Paul McFerrin <pmcferrin AT columbus DOT rr DOT com> |
Reply-To: | pmcferrin AT columbus DOT rr DOT com |
User-Agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
MIME-Version: | 1.0 |
To: | Cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: My"C" Compiled can't compile "{}" |
References: | <4B381883 DOT 7030002 AT columbus DOT rr DOT com> <4B382F92 DOT 4000806 AT gmail DOT com> |
In-Reply-To: | <4B382F92.4000806@gmail.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |