This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with FUNC

I always get an error 129 (missing ';' before 'void') when I compile in this part:
func void iicstart (void)
{
sda = 1;
scl = 1;
del4us ()
sda = 0;
del4us ()
scl = 0;
del4us ()
}

what is wrong?

Parents
  • "func" is the problem.

    "Missing ; before <token>" is one of those compiler error messages that you wish actually says what it means. Normally, I see this error when there is an undefined type for a return value of a function.

    ForgotToInclude f()

    - Missing ; before f.

Reply
  • "func" is the problem.

    "Missing ; before <token>" is one of those compiler error messages that you wish actually says what it means. Normally, I see this error when there is an undefined type for a return value of a function.

    ForgotToInclude f()

    - Missing ; before f.

Children
  • "'Missing ; before <token>' is one of those compiler error messages that you wish actually says what it means."

    What it means is that the compiler expects nothing before <token>; therefore, if it finds something before <token>, it assumes that there should've been a ';' after the "something" !!