Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to build with cmake, yet I am running into a problem with not being able to detect one of my headers that seems to not be detected. What am I missing or could be doing wrong? Thanks!

What I have tried:

Imgur: The magic of the Internet[^]
Posted
Updated 10-Jan-21 7:23am

1 solution

You need to add the include path to the INCLUDE variable (not sure what its actual name is) in your make file. Alternatively add it to the include statement in your main.cpp file.
C++
#include "../include/Calculator.hpp"


[edit]
corrected the path separators.
[/edit]
 
Share this answer
 
v2
Comments
k5054 10-Jan-21 13:41pm    
I think that should be
#include "../include/Calculator.hpp"
, for linux.
Richard MacCutchan 10-Jan-21 13:52pm    
Thanks, solution updated.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900