Hi I am getting an undefined reference error from my code
here is a snippet of my code.
#include <stdio.h>
#include <windows.h>
//defining functions
void ErrorFunc(int error);
int error = 0;
int main(void){
return 0;
}
void ErrorFunc(int error)
{
FunctionFromALibrary(error);
}
I am using DEVC++ 5 and I have included the library that I need to use in the project-project options-parameters - linker
there i have:
thisLibrary.lib
-lmingw32
I also added that directory in
project-project options-directory-directories-library directories
it is at least partially linked because if i hold my mouse of the
FunctionFromALibrary()
DEVC++ will show me the prototype