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

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
0 x

abma
Spring Developer
Posts: 3555
Joined: 01 Jun 2009, 00:08

Re: Compilation error reinterpret_cast

Post by abma » 05 Jun 2018, 15:00

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/
0 x

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

Re: Compilation error reinterpret_cast

Post by constatinus » 05 Jun 2018, 15:13

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.
0 x

sanguinariojoe
Posts: 20
Joined: 19 Apr 2016, 21:11

Re: Compilation error reinterpret_cast

Post by sanguinariojoe » 06 Jun 2018, 08:33

I made a PR to fix those constexpr errors:

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

Post Reply

Return to “Linux”

cron