Warning: non-portable path to file. Why and how to fix it?
-
Prototype/main.cpp:19: warning: non-portable path to file '"../Universal/cpp/Global/aglobal.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] #include "../Universal/cpp/Global/aGlobal.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "../Universal/cpp/Global/aglobal.h"
-
Fix the upper/lower case of your include statement
-
@Christian-Ehrlicher I haven't been changing anything old project just started to show this message. How to fix it?
-
Solution found ...
I've been experimenting with CamelCase naming. And after it switched on again "lower case property" in settings. But in moc-files and QT Creator cache - was still CamelCase notated files. Restarting Qt Creator and reload project solve the issue. -
@Christian-Ehrlicher I haven't been changing anything old project just started to show this message.
I've been experimenting with CamelCase naming. And after it switched on again "lower case property" in settings
! :)
Anyway glad you're solved.
-
@JonB Physically I've been returning to the state of last commit. And yes - it wasn't changed. But Qt creator when asked to reload all files didn't reload cache and didn't rebuild moc ... And if you will look carefully there are in log strange thing:
#include "../Universal/cpp/Global/aGlobal.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "../Universal/cpp/Global/aglobal.h"
In a first line aGlobal.h and in second aglobal.h and physically file named aglobal.h
All of it written totally correct ... If it's smiling you - I am OK with that ...
Issue closed.