Zandronum Chat on our Discord Server Get the latest version: 3.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002770Zandronum[All Projects] Bugpublic2016-07-02 12:192018-09-30 22:02
ReporterDusk 
Assigned ToTorr Samaho 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.0-beta 
Target VersionFixed in Version3.0 
Summary0002770: error: use of undeclared identifier 'nullptr'
DescriptionChangeset 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.
Attached Files

- Relationships
child of 0001067closedTorr Samaho Server crash if Strife NPCs die through wound states 

-  Notes
User avatar (0015168)
Dusk (developer)
2016-07-02 12:30
edited on: 2016-07-02 12:30

Passing
-DCMAKE_CXX_FLAGS="-Dnullptr=NULL"
to CMake seems to be a functional workaround.

User avatar (0015169)
Torr Samaho (administrator)
2016-07-02 12:33

Good point. I replaced nullptr with NULL in 3.0.
User avatar (0015170)
Dusk (developer)
2016-07-02 13:18

This is resolved now.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2016-07-02 12:19 Dusk New Issue
2016-07-02 12:22 Dusk Description Updated View Revisions
2016-07-02 12:23 Dusk Relationship added child of 0001067
2016-07-02 12:30 Dusk Note Added: 0015168
2016-07-02 12:30 Dusk Note Edited: 0015168 View Revisions
2016-07-02 12:33 Torr Samaho Note Added: 0015169
2016-07-02 13:18 Dusk Note Added: 0015170
2016-07-02 13:18 Dusk Status new => resolved
2016-07-02 13:18 Dusk Fixed in Version => 3.0
2016-07-02 13:18 Dusk Resolution open => fixed
2016-07-02 13:18 Dusk Assigned To => Torr Samaho
2018-09-30 22:02 Blzut3 Status resolved => closed






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker