943,987 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Marked Solved
  • Views: 598
  • C RSS
Sep 18th, 2009
0

C Program Compiles in Dev-C++ but not GCC?

Expand Post »
p1a.c: In function `main':
p1a.c:20: parse error before `char'
p1a.c:46: parse error before `char'
p1a.c:47: `result' undeclared (first use in this function)
p1a.c:47: (Each undeclared identifier is reported only once
p1a.c:47: for each function it appears in.)
p1a.c:47: `basechars' undeclared (first use in this function)
Last edited by Kombat; Sep 18th, 2009 at 2:23 pm.
Reputation Points: 10
Solved Threads: 0
Light Poster
Kombat is offline Offline
39 posts
since Sep 2009
Sep 18th, 2009
2

Re: C Program Compiles in Dev-C++ but not GCC?

Standard C doesn't allow you to declare variables in the middle of statement blocks.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Sep 18th, 2009
0

Re: C Program Compiles in Dev-C++ but not GCC?

got it thanks
Reputation Points: 10
Solved Threads: 0
Light Poster
Kombat is offline Offline
39 posts
since Sep 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Simple Left-To-Right Arithmetic Calculator
Next Thread in C Forum Timeline: Idea





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC