I'm trying to make a program in which I include the library "conio.h", but I need to include it in two separate files. Whenever I try to run it, I get a multiple definition error. The source for conio.h can be found here.I've been having to include almost all of my functions in main.cpp and it's getting quite inconvenient to have to scroll past it to get to my main function.I've tried everything I can think of, including having extra #ifndef's and #define's in my cpp files. That looked something like this:#ifndef EXAMPLE_H#define EXAMPLE_H#include "conio.h"#endif
Maybe try <conio.h> instead of "conio.h". Also, try including it in one file only.