After some research, i still don't understand the problem.
Const.hpp :
#ifndef CONST_HPP
#define CONST_HPP
#include <QString>
const QString CONFFILENAME("dsibubble.ini"),
STRSEP(" | ");
const int MAXIMGWIDTH = 960;
#endif // CONST_HPP
TabDataBase.cpp :
#include "Const.hpp"
func() {
QString abc = STRSEP;
}
The use of STRSEP
generate an expected unqualified-id before string constant
error.
Moreover i use CONFFILENAME
in an other class and i have no error.
QString path = QString("..//") + CONFFILENAME;
EDIT: Error's detail :
In file included ..\TabDataBase.cpp: #include "Const.hpp"
expected unqualified-id before string constant: Const.hpp : STRSEP(" | ");