Compile error on 1.12

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderator: Forum Moderators

Post Reply
Paranoid
Posts: 8
Joined: November 29th, 2014, 2:25 pm

Compile error on 1.12

Post by Paranoid »

Hi Guyz,

got an error yesterday as i tried to compile new release on my amd64 using clang-3.5.

Replacing lines 1655 & 1656 form modul /src/sdl_utils.cpp

Code: Select all

dst_w = static_cast<int>(ceil(abs(max_x) - min_x)) / zoom;
dst_h = static_cast<int>(ceil(abs(max_y) - min_y)) / zoom;
with

Code: Select all

dst_w = static_cast<int>(ceil(std::abs(max_x) - min_x)) / zoom;
dst_h = static_cast<int>(ceil(std::abs(max_y) - min_y)) / zoom;
solved that problem for me.

Cheers
Martin

btw. Thnx for the new release!
Post Reply