Jump to content

UDPInterface.c:64:31: error: expected '{' before ';' token

- - - - -

  • Please log in to reply
1 reply to this topic

#1
liamzebedee

liamzebedee

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
Error: UDPInterface.c:64:31: error: expected '{' before ';' token
UDPInterface.c
Interface.h

When compiling, I have a bug somewhere in my code, because in UDPInterface.c on line 64, upon declaration of an interface struct variable -
struct Interface interface;
- the compiler expects a declaration of the full type, when it SHOULD be already included from Interface.h on line 15 -
#include "interface/Interface.h"
.

I have no idea why this is happening. I am using MinGW as my compiler.

Some possible causes, but I haven't been able to spot any -
  • Possible name conflict with either Interface or interface somewhere


---------- Post added at 01:02 AM ---------- Previous post was at 12:30 AM ----------

There was a name conflict with the variable name interface

#2
kernelcoder

kernelcoder

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 282 posts
  • Location:Dhaka
  • Programming Language:C, Java, C++, C#, Visual Basic .NET
  • Learning:Objective-C, PHP, Python, Delphi/Object Pascal
hmm, you got it -- the interface variable.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users