Navigating to declaration from a separate included file while compiling and executing only on a remote server
已回答
I want to be able to navigate by declaration by pressing control + b on a function. If this function (or typedef) has been included in this file via a #include statement Clion cannot find the declaration. I was wondering if this is because I am not compiling or executing on my Windows local machine. I can only compile using a flavor of make (bmake) on a remote Linux machine. Is there a way to tell Clion where declarations are in other files without compiling?
请先登录再写评论。
Could you run CMake locally on your project? Does it work in this case? The thing is that since currently CLion works only locally, CMake also runs only locally on the project.
Are header search paths specified correctly in the CMake.txt? Header search paths are important for both the compiler (so that it knows where to search for headers) but also for CLion, since the IDE can index the relevant directories and provide code completion and navigation facilities on #include statements. So header search paths in the CMake.txt must be correct, i.e. lead to the correct location of headers on the machine where CLion is working. Please find the tutorial here.