CLion doesn;t recognize file path for compile output when project root differs from gcc's output path root

已回答

project root is actually one directory above 'src'. Build is run by externally running 'make'.

How to make clion realize that "src/stack/runner/stack_main.cc:" can be found in project_root/monolith/src/stack/runner/stack_main.cc  ?

```

src/stack/runner/stack_main.cc: In function 'int main(int, char**)':
src/stack/runner/stack_main.cc:69:36: error: expected ')' before numeric constant
setenv("PYTHONPATH", pp.c_str()1);
^
src/stack/runner/stack_main.cc:69:37: error: too few arguments to function 'int setenv(const char*, const char*, int)'
setenv("PYTHONPATH", pp.c_str()1);
^

```

0

Hello!

You can try using Tools | CMake | Change Project Root.

0

请先登录再写评论。