Qt-interest Archive, April 2007
Compiling error
Message 1 in thread
Hello
I have been trying to compile a project but some errors occured related to
the form of the
comments-informations that i use on the source and header files.
(e.g. // set the pen's color to be white
painter->setPen(Qt::white); )
A part of the errors occured are shown below :
QGPoint.cpp:155:1: warning: null character(s) ignored
QGPoint.cpp:155:3: warning: null character(s) ignored
QGPoint.cpp:156:1: warning: null character(s) ignored
QGPoint.cpp:157:1: warning: null character(s) ignored
QGPoint.cpp:158:1: warning: null character(s) ignored
QGPoint.cpp:159:1: warning: null character(s) ignored
How could i avoid these errors?
--
[ signature omitted ]
Message 2 in thread
Nikos Geronitidis wrote:
> Hello
>
> I have been trying to compile a project but some errors occured
> related to the form of the
> comments-informations that i use on the source and header files.
>
> (e.g. // set the pen's color to be white
> painter->setPen(Qt::white); )
>
> A part of the errors occured are shown below :
>
> QGPoint.cpp:155:1: warning: null character(s) ignored
> QGPoint.cpp:155:3: warning: null character(s) ignored
> QGPoint.cpp:156:1: warning: null character(s) ignored
> QGPoint.cpp:157:1: warning: null character(s) ignored
> QGPoint.cpp:158:1: warning: null character(s) ignored
> QGPoint.cpp:159:1: warning: null character(s) ignored
>
> How could i avoid these errors?
Have a look at the file with a viewer that is able to display it in
hexadecimal form. If there are really null characters on those lines,
remove them or better, try to find out how did they get there in the
first place. It's very strange to have null characters in a textfile.
Martin.
--
[ signature omitted ]