MantisBT - Zandronum
View Issue Details
0002770Zandronum[All Projects] Bugpublic2016-07-02 12:192018-09-30 22:02
Dusk 
Torr Samaho 
normalblockalways
closedfixed 
3.0-beta 
3.0 
0002770: error: use of undeclared identifier 'nullptr'
Changeset dd923895a4f4 added these bits of code into a_strifeitems.cpp:


bool ARaiseAlarm::SpecialDropAction (AActor *dropper)
{
    if (dropper->target != nullptr)
    {
        ...

bool ACloseDoor222::SpecialDropAction (AActor *dropper)
{
    EV_DoDoor (DDoor::doorClose, NULL, dropper, 222, 2*FRACUNIT, 0, 0, 0);
    if (dropper->target != nullptr)
    {
        ...


nullptr is a C++11 only identifier, so the above causes compilation errors on Linux, as GCC and Clang (unlike MSVC) do not default to C++11 by default.
No tags attached.
child of 0001067closed Torr Samaho Server crash if Strife NPCs die through wound states 
Issue History
2016-07-02 12:19DuskNew Issue
2016-07-02 12:22DuskDescription Updatedbug_revision_view_page.php?rev_id=9199#r9199
2016-07-02 12:23DuskRelationship addedchild of 0001067
2016-07-02 12:30DuskNote Added: 0015168
2016-07-02 12:30DuskNote Edited: 0015168bug_revision_view_page.php?bugnote_id=15168#r9201
2016-07-02 12:33Torr SamahoNote Added: 0015169
2016-07-02 13:18DuskNote Added: 0015170
2016-07-02 13:18DuskStatusnew => resolved
2016-07-02 13:18DuskFixed in Version => 3.0
2016-07-02 13:18DuskResolutionopen => fixed
2016-07-02 13:18DuskAssigned To => Torr Samaho
2018-09-30 22:02Blzut3Statusresolved => closed

Notes
(0015168)
Dusk   
2016-07-02 12:30   
Passing
-DCMAKE_CXX_FLAGS="-Dnullptr=NULL"
to CMake seems to be a functional workaround.

(0015169)
Torr Samaho   
2016-07-02 12:33   
Good point. I replaced nullptr with NULL in 3.0.
(0015170)
Dusk   
2016-07-02 13:18   
This is resolved now.