From what the error message complains about, it sounds like you should rather try to fix the source code. The compiler complains about difference in declaration, similar to for instance
void foo(int i); ... void foo(double d) { ... }
and this is not valid C code, hence the compiler complains.
Maybe your problem is that there is no prototype available when the function is used the first time and the compiler implicitly creates one that will not be static. If so the solution is to add a prototype somewhere before it is first used.
Related Posts:
- difference between
and - Warning/error “function declaration isn’t a prototype”
- warning: initializer element is not computable at load time
- Why do I get “cast from pointer to integer of different size” error?
- Undefined reference to main – collect2: ld returned 1 exit status
- Where is the
header file on Linux? Why can’t I find ? - typedef fixed length array
- Convert char to int in C and C++
- what is stack smashing (C)?
- conflicting types error when compiling c program using gcc
- What is a file with extension .a?
- gcc/g++: “No such file or directory”
- How to do scanf for single char in C
- Sign extend a nine-bit number in C
- Break statement not within loop or switch in C
- How to properly malloc for array of struct in C
- Cache Simulator in C
- Where is the C auto keyword used?
- (.text+0x20): undefined reference to `main’ and undefined reference to function
- Convert char array to a int number in C
- Bind failed: Address already in use
- Error: initializer element is not computable at load time
- What is the difference between %f and %lf in C?
- Debug vs Release in CMake
- What is stdin in C language?
- How to prevent multiple definitions in C?
- How to pass 2D array (matrix) in a function in C?
- How can you print multiple variables inside a string using printf?
- C dynamically growing array
- Why should we check WIFEXITED after wait in order to kill child processes in Linux system call?
- How to compile makefile using MinGW?
- Mapping a numeric range onto another
- Why are hexadecimal numbers prefixed with 0x?
- Portable way to check if directory exists [Windows/Linux, C]
- too many arguments for format [-Wformat-extra-args]
- How to copy a char array in C?
- Simple way to check if a string contains another string in C?
- cast to pointer from integer of different size, pthread code
- Invalid type argument of unary ‘*’ (have ‘int’) Error in C
- C subscripted value is neither array nor pointer nor vector when assigning an array element value
- error: too few arguments to function `printDay’ (C language)
- What happens during a “relocation has invalid symbol index” error?
- Where to find the complete definition of off_t type?
- struct has no member named
- printf not printing to screen
- What does this GCC error “… relocation truncated to fit…” mean?
- Initializing array of structures
- Still Reachable Leak detected by Valgrind
- Assembly x86 – “leave” Instruction
- What is signed integer overflow?
- When to use const char * and when to use const char []
- error: unknown type name ‘bool’
- What do numbers using 0x notation mean?
- Can I create an Array of Char pointers in C?
- Does stack grow upward or downward?
- Convert Little Endian to Big Endian
- Excess elements of scalar initializer for pointer to array of ints
- error C2371: ‘functionname’ redefinition: different basic types
- How does one represent the empty char?
- How to write to a file using open() and printf()?
- note: previous implicit declaration of ‘point_forward’ was here
- Can I define a function inside a C structure?
- What exactly is meant by “de-referencing a NULL pointer”?
- Why is the sizeof(int) == sizeof(long)?
- getc() vs fgetc() – What are the major differences?
- C Unknown type name ‘my_structure’
- Tokenizing strings in C
- How to allocate array of pointers for strings by malloc in C?
- cc1.exe System Error – libwinpthread-1.dll missing – But it isn’t
- How to format strings using printf() to get equal length in the output
- “-bash: gcc: command not found” using cygwin when compiling c?
- How to format strings using printf() to get equal length in the output
- lseek/write suddenly returns -1 with errno = 9 (Bad file descriptor)
- Should I use printf(“\n”) or putchar(‘\n’) to print a newline in C?
- What do \t and \b do?
- Why and when to use static structures in C programming?
- error: struct has no member named X
- Where does linux store my syslog?
- Example of waitpid() in use?
- Can a function return two values?
- C: warning: excess elements in array initializer; near initialization for ‘xxx’ ; expects ‘char *’, but has type ‘int’
- write() to stdout and printf output not interleaved?
- How to know what the ‘errno’ means?
- Split string with multiple delimiters using strtok in C
- Printf was not declared in this scope
- warning: missing terminating ” character [enabled by default]
- How to free memory from char array in C
- Can I get Unix’s pthread.h to compile in Windows?
- Initializing 2D char array in C
- GCC: Array type has incomplete element type
- FFT in a single C-file
- Process exited with return value 3221225477
- How do I check if a string contains a certain character?
- malloc(sizeof(int)) vs malloc(sizeof(int *)) vs (int *)malloc(sizeof(int))
- %p Format specifier in c
- Level vs Edge Trigger Network Event Mechanisms
- “Nothing to be done for makefile” message
- Compiler gcc:error; no such file or directory
- Convert Char to String in C
- What is the difference between signed and unsigned int