#When compiling get excess elements in struct

2 messages · Page 1 of 1 (latest)

gentle anvil
#

When I compile I get this error:

../decompile/General/zGlobal_SDATA.c:452:20: note: (near initialization for ‘sdata_static’)
../decompile/General/zGlobal_SDATA.c:453:10: error: ‘struct sData’ has no member named ‘s_water’
  453 |         .s_water = "water",
      |          ^~~~~~~
../decompile/General/zGlobal_SDATA.c:453:20: warning: excess elements in struct initializer
  453 |         .s_water = "water",
      |                    ^~~~~~~
../decompile/General/zGlobal_SDATA.c:453:20: note: (near initialization for ‘sdata_static’)
../decompile/General/zGlobal_SDATA.c:454:10: error: ‘struct sData’ has no member named ‘s_wood’
  454 |         .s_wood = "wood",
      |          ^~~~~~
../decompile/General/zGlobal_SDATA.c:454:19: warning: excess elements in struct initializer
  454 |         .s_wood = "wood",
      |                   ^~~~~~
../decompile/General/zGlobal_SDATA.c:454:19: note: (near initialization for ‘sdata_static’)
../decompile/General/zGlobal_SDATA.c:455:10: error: ‘struct sData’ has no member named ‘s_grass’
  455 |         .s_grass = "grass",
      |          ^~~~~~~

ps: the compilation works fine on windows, this error appears only on linux

compilation command:

gcc ctr.c -IlibValkyrie -IPsyCross/include -Wimplicit-function-declaration -std=c11

neon voidBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.