Relative Content

Tag Archive for c++functionfilefunction-declaration

There is a function error not declared in file.hpp

I declared a function in the main.hpp file, after giving the #pragma once instruction. Then in main.cpp file I did #include “main.hpp” and I called the function in main. An error was detected: use of undeclared identifier.