Menu

#1 Use of "or" in news_date.cpp

open
nobody
None
5
2002-09-07
2002-09-07
Anonymous
No

When I try to compile newsobject I get an error in the
file news_date.cpp. The author of this file uses an
"or" expression instead of || which seems very non C
like. But it's probably a macro that's missing somewhere.

The compiler error is:
news_date.cpp: In method `bool news_date::setDay(int)':
news_date.cpp:73: parse error before `day'
news_date.cpp:76: confused by earlier errors, bailing out
make[3]: *** [news_date.o] Error 1
make[3]: Leaving directory
`/home/timmag/download/newsobjects-0.9.3/newsobjects'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/timmag/download/newsobjects-0.9.3/newsobjects'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/timmag/download/newsobjects-0.9.3'
make: *** [all-recursive-am] Error 2

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.