Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0009363 [DCSS] Bug Report minor always 2014-12-24 19:04 2015-01-24 03:59
Reporter geekosaur View Status public  
Assigned To neil
Priority normal Resolution done  
Status closed   Product Branch 0.16 ancient branch
Summary 0009363: missing #include <cmath> in godabil.cc
Description
    CXX godabil.o
godabil.cc:1953:19: error: use of undeclared identifier 'atan2'
    float theta = atan2((float)pos.y, (float)pos.x);
                  ^
godabil.cc:2101:30: error: use of undeclared identifier 'powf'
    float trial_prob_f = 1 - powf(p_failure, 1.0f / total_trials);
                             ^
godabil.cc:2177:32: error: use of undeclared identifier 'sqrtf'
    float target_arc_len = 2 * sqrtf(2.0f);
                               ^
godabil.cc:2179:36: error: use of undeclared identifier 'ceilf'
    int n_arcs = static_cast<int> (ceilf(2 * PI * (chosen_idx + 1)
                                   ^
godabil.cc:2279:45: error: use of undeclared identifier 'sqrtf'
                int dist = static_cast<int>(sqrtf(offset.abs()) + 0.5);
                                            ^
5 errors generated.


Adding "#include <cmath>" after the "#include <numeric>" allows compilation to continue.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0028148)
neil (administrator)
2014-12-24 19:08

Fixed in trunk (0.16-a0-3292-gc3d51c1), thanks!

- Issue History
Date Modified Username Field Change
2014-12-24 19:04 geekosaur New Issue
2014-12-24 19:08 neil Note Added: 0028148
2014-12-24 19:08 neil Status new => resolved
2014-12-24 19:08 neil Fixed in Branch => 0.16 development branch
2014-12-24 19:08 neil Resolution open => done
2014-12-24 19:08 neil Assigned To => neil
2015-01-24 03:59 geekosaur Status resolved => closed


Mantis 1.1.8[^]
Copyright © 2000 - 2009 Mantis Group
Powered by Mantis Bugtracker