Home/Support/Support Forum/Dynamic C compile error: line 1 : prog.c : ) is missing/expected.
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Dynamic C compile error: line 1 : prog.c : ) is missing/expected.

0 votes
Hi, I got the following two errors, line 1 is the start of a comment block. Something downstream in my code, or else something in a library, is really causing this, but where do I start???


First two Compiler Messages:

line 1 : ERROR MASTER4.C : ) is missing/expected.
line 1 : ERROR MASTER4.C : Missing character ';'.
asked Jan 2, 2014 in Rabbit Software by cburian New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
Unfortunately, that is a very vague error message and doesn't pinpoint what the problem is. The best way to tackle this is with a binary search.

Basically, comment out half the code (more or less) and see which half of the program
the bug is in. Repeat until the problem is isolated.
answered Jan 3, 2014 by trooper2 Veteran of the Digi Community (589 points)
Thanks!  I found it was caused by a missing closing brace in a function definition.  Seems that when I get a big dump of errors, especially nonsense ones, it is caused by a single problem.