10-19-2009 07:15 PM
Labwindows is complaining I don't have a function prototype for one of my external functions. It's created in a separate file in the project. Here's an exmaple of the problem I'm having.
main.c
#include "file.h"
int main()
{
file_fxn();// Shows an error on this line saying no prototype.
return 0;
}
file.h
#ifndef FILE_H
#define FILE_H
void file_fxn();
#endif
file.c
#include "file.h"
void file_fxn() {}
10-19-2009 10:13 PM
You can't have an empty argument list in a prototype, you should have:
file.h
#ifndef FILE_H
#define FILE_H
void file_fxn(void);
#endif