I was wondering can i have a .cpp file like
as gsh.cppCode:#include "gsh.h" #include <string.h> char* getStringhere(){ char * str1 = "here I finished libMIDS.a"; return str1; }
then a header gsh.h with just
char* getStringhere();
as my only line in it.
cuz i have a .c file thats has the main and i call getStringhere(); and it doesnt work says its undefined reference but i have the header in my .c file