Normally that error occurs when a }
was missed somewhere in the code, for example:
void mi_start_curr_serv(void){
#if 0
//stmt
#endif
would fail with this error due to the missing }
at the end of the function. The code you posted doesn’t have this error, so it is likely coming from some other part of your source.
Related Contents:
- What does “static” mean in C?
- How do I determine the size of my array in C?
- What are the most common naming conventions in C?
- What is the format specifier for unsigned short int?
- Can’t understand this way to calculate the square of a number
- How does this piece of code determine array size without using sizeof( )?
- Why do I get “a label can only be part of a statement and a declaration is not a statement” if I have a variable that is initialized after a label? [duplicate]
- How can I compile without warnings being treated as errors?
- How can I tell if a library was compiled with -g?
- Undefined reference to `sin` [duplicate]
- How can I multiply and divide using only bit shifting and adding?
- malloc for struct and pointer in C
- Difference between surface and texture (SDL / general)
- Does stack grow upward or downward?
- How can I convert a binary file to the text declaring a C/C++ array with that content?
- C char array initialization: what happens if there are less characters in the string literal than the array size?
- How to use /dev/random or urandom in C?
- How do you declare string constants in C?
- Determine size of dynamically allocated memory in C
- How to Declare a 32-bit Integer in C
- What if I don’t write default in switch case?
- Do I need to keep a file open after calling mmap on it?
- Where to find “gmp.h”?
- Why is memory allocation on heap MUCH slower than on stack?
- Check glibc version for a particular gcc compiler
- CMAKE – How to properly copy static library’s header file into /usr/include?
- Can a C macro definition refer to other macros?
- Time in milliseconds in C
- How to convert big endian to little endian in C without using library functions?
- How do I link object files in C? Fails with “Undefined symbols for architecture x86_64”
- Using if (!!(expr)) instead of if (expr)
- Type of #define variables
- How do I print uint32_t and uint16_t variables’ value?
- How to read, understand, analyze, and debug a Linux kernel panic?
- Are prototypes required for all functions in C89, C90 or C99?
- getc() vs fgetc() – What are the major differences?
- Pass an array to a function by value
- Why does this memory address %fs:0x28 ( fs[0x28] ) have a random value?
- C compiler asserts – how to implement?
- Linking against older symbol version in a .so file
- Assembly x86 – “leave” Instruction
- Static functions declared in “C” header files
- hexadecimal floating constant in C
- Are there any non-twos-complement implementations of C?
- Realloc on NULL-valued (or undefined) pointer
- How universally is C99 supported?
- Is it well-defined to use a pointer pointing to one-past-malloc?
- What is the C equivalent for reinterpret_cast?
- C convert floating point to int
- This program sounds the bell!