Compilation error reinterpret_cast

Compilation error reinterpret_cast

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
constatinus
Posts: 31
Joined: 27 Sep 2015, 23:00

Compilation error reinterpret_cast

Post by constatinus »

I get a conpilation error:

Code: Select all

/home/user/git/spring/rts/Rendering/GL/RenderDataBuffer.hpp:56:3: error: reinterpret_cast from integer to pointer
  }};
   ^
/home/user/git/spring/rts/Rendering/GL/RenderDataBuffer.hpp:64:3: error: reinterpret_cast from integer to pointer
  }};
   ^
/home/user/git/spring/rts/Rendering/GL/RenderDataBuffer.hpp:73:3: error: reinterpret_cast from integer to pointer
  }};
   ^
/home/user/git/spring/rts/Rendering/GL/RenderDataBuffer.hpp:89:3: error: reinterpret_cast from integer to pointer
  }};
   ^
/home/user/git/spring/rts/Rendering/GL/RenderDataBuffer.hpp:101:3: error: reinterpret_cast from integer to pointer
  }};
   ^
/home/user/git/spring/rts/Rendering/GL/RenderDataBuffer.hpp:114:3: error: reinterpret_cast from integer to pointer
  }};
   ^
/home/user/git/spring/rts/Rendering/GL/RenderDataBuffer.hpp:130:3: error: reinterpret_cast from integer to pointer
  }};
and similar.

gcc 8.1.1; which i think is the problem. Latest spring master from git.
Fedora 28 x86_64
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Compilation error reinterpret_cast

Post by abma »

can you check if you get the same error for the current development branch, too?

if so: please create a bug report: https://springrts.com/mantis/
constatinus
Posts: 31
Joined: 27 Sep 2015, 23:00

Re: Compilation error reinterpret_cast

Post by constatinus »

abma wrote:can you check if you get the same error for the current development branch, too?

if so: please create a bug report: https://springrts.com/mantis/
Sorry, i was acctuallly using the develop branch already. master also doesn't work. maintenance too.
sanguinariojoe
Posts: 26
Joined: 19 Apr 2016, 21:11

Re: Compilation error reinterpret_cast

Post by sanguinariojoe »

I made a PR to fix those constexpr errors:

https://github.com/spring/spring/pull/380
Post Reply

Return to “Linux”