I have some useful functions in another project (project 2) but do not want to copy and paste all of them into a file within the project i'm currently working on (project one). I've tried making and including a header file within project one but it hasn't worked. Do I have to copy paste project 1 into project 2? My IDE is codelite. Thanks<3
EDIT: my header file is called hewwo.h and the code is
extern int readln(char[], int);
extern int searchstring(char[], char[]);
this file is within project 1.
and at the top of main.c in project 1 I have
#include < stdio.h> #include <stdlib.h> #include <string.h> #include "hewwo.h"
I'm trying to use the readln function in main.c and its throwing an "undefined symbols" error