Hello,
I have a problem. When trying to compile my sourcecode I get following warning:
undefined reference to `add'
This is where I get it:
This is the header:Code:#include <stdio.h> #include <string.h> #include "mytype.h" int main(int argc, char *argv[]) { MyType ps = {0,0}; add(3, &ps); ...
What did I get wrong? Both files are in the same directory.Code:typedef struct { int counter; int lastindex; unsigned int codes[100]; } MyType; void add(unsigned int code, MyType *ps);