how can I fix a C++ library error

Hello I program in C++ and I like to compile and run my code through terminal but when I link a library through Xcode this error is showing in Terminal

main.cpp:5:10: fatal error: 'Console.h' file not found

#include <Console.h>

         ^~~~~~~~~~~

1 error generated.

and I the library is linked because it work fine in Xcode console but I can't use system(); because some TERM environment variable not set. and sorry if this is a easy question to answer and google but I didn't now how to google some fix and I used Mac like for 6 days so I very new to all this