I have my project in a directory called junkyard. Inside junkyard, I have test.c
, and a folder called include.
My code looks like this:
#include <my_global.h>
#include <mysql.h>
int main(int argc, char **argv)
{
printf("MySQL client version: %s\n", mysql_get_client_info());
}
And the two header files are located inside the include folder (which, again, is in the root directory of the project. So the structure's necessary files are located like this:
junkyard/test.c
junkyard/include/mysql.h
junkyard/include/my_global.h
Note that I am using GCC on Windows. I am unable to compile the program, and I have tried several approaches. How do I link the header files correctly? Thanks.