Page 1 of 1

Compilation error reinterpret_cast

Posted: 05 Jun 2018, 14:35
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

Re: Compilation error reinterpret_cast

Posted: 05 Jun 2018, 15:00
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/

Re: Compilation error reinterpret_cast

Posted: 05 Jun 2018, 15:13
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.

Re: Compilation error reinterpret_cast

Posted: 06 Jun 2018, 08:33
by sanguinariojoe
I made a PR to fix those constexpr errors:

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