InsanityBringer / ChocolateDescent

Software rendering focused Descent port.
Other
34 stars 8 forks source link

Fails to build due to a missing include? #10

Closed Kirtai closed 4 years ago

Kirtai commented 4 years ago

Latest git fails to build due to a missing "#include ’"?

BTW, thanks for doing this, chocolate source ports are needed :)

[ 52%] Building CXX object CMakeFiles/ChocolateDescent.dir/main_d1/render.cpp.o
In file included from /zpool/media/games/code/engines/ChocolateDescent/main_d1/render.cpp:20:
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:79:22: error: variable or field ‘write_tmap_info’ declared void
   79 | void write_tmap_info(FILE* fp);
      |                      ^~~~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:79:22: error: ‘FILE’ was not declared in this scope
In file included from /zpool/media/games/code/engines/ChocolateDescent/main_d1/render.cpp:20:
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:18:1: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
   17 | #include "piggy.h"
  +++ |+#include <cstdio>
   18 | 
In file included from /zpool/media/games/code/engines/ChocolateDescent/main_d1/render.cpp:20:
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:79:28: error: ‘fp’ was not declared in this scope
   79 | void write_tmap_info(FILE* fp);
      |                            ^~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:80:23: error: variable or field ‘write_vclip_info’ declared void
   80 | void write_vclip_info(FILE* fp);
      |                       ^~~~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:80:23: error: ‘FILE’ was not declared in this scope
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:80:23: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:80:29: error: ‘fp’ was not declared in this scope
   80 | void write_vclip_info(FILE* fp);
      |                             ^~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:81:24: error: variable or field ‘write_effect_info’ declared void
   81 | void write_effect_info(FILE* fp);
      |                        ^~~~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:81:24: error: ‘FILE’ was not declared in this scope
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:81:24: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:81:30: error: ‘fp’ was not declared in this scope
   81 | void write_effect_info(FILE* fp);
      |                              ^~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:82:26: error: variable or field ‘write_wallanim_info’ declared void
   82 | void write_wallanim_info(FILE* fp);
      |                          ^~~~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:82:26: error: ‘FILE’ was not declared in this scope
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:82:26: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:82:32: error: ‘fp’ was not declared in this scope
   82 | void write_wallanim_info(FILE* fp);
      |                                ^~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:83:23: error: variable or field ‘write_robot_info’ declared void
   83 | void write_robot_info(FILE* fp);
      |                       ^~~~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:83:23: error: ‘FILE’ was not declared in this scope
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:83:23: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:83:29: error: ‘fp’ was not declared in this scope
   83 | void write_robot_info(FILE* fp);
      |                             ^~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:84:30: error: variable or field ‘write_robot_joints_info’ declared void
   84 | void write_robot_joints_info(FILE* fp);
      |                              ^~~~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:84:30: error: ‘FILE’ was not declared in this scope
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:84:30: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:84:36: error: ‘fp’ was not declared in this scope
   84 | void write_robot_joints_info(FILE* fp);
      |                                    ^~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:85:24: error: variable or field ‘write_weapon_info’ declared void
   85 | void write_weapon_info(FILE* fp);
      |                        ^~~~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:85:24: error: ‘FILE’ was not declared in this scope
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:85:24: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:85:30: error: ‘fp’ was not declared in this scope
   85 | void write_weapon_info(FILE* fp);
      |                              ^~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:86:25: error: variable or field ‘write_powerup_info’ declared void
   86 | void write_powerup_info(FILE* fp);
      |                         ^~~~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:86:25: error: ‘FILE’ was not declared in this scope
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:86:25: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:86:31: error: ‘fp’ was not declared in this scope
   86 | void write_powerup_info(FILE* fp);
      |                               ^~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:87:27: error: variable or field ‘write_polygon_models’ declared void
   87 | void write_polygon_models(FILE* fp);
      |                           ^~~~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:87:27: error: ‘FILE’ was not declared in this scope
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:87:27: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:87:33: error: ‘fp’ was not declared in this scope
   87 | void write_polygon_models(FILE* fp);
      |                                 ^~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:88:24: error: variable or field ‘write_player_ship’ declared void
   88 | void write_player_ship(FILE* fp);
      |                        ^~~~
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:88:24: error: ‘FILE’ was not declared in this scope
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:88:24: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
/zpool/media/games/code/engines/ChocolateDescent/main_d1/bm.h:88:30: error: ‘fp’ was not declared in this scope
   88 | void write_player_ship(FILE* fp);
      |                              ^~
make[2]: *** [CMakeFiles/ChocolateDescent.dir/build.make:1558: CMakeFiles/ChocolateDescent.dir/main_d1/render.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/ChocolateDescent.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
InsanityBringer commented 4 years ago

Ah, Microsoft's c/c++ conformity strikes again, it would appear... Should be fixed with commit https://github.com/InsanityBringer/ChocolateDescent/commit/11c2b2c70cf74fccbd93e2cb9242f66e8bd449ae, let me know if it worked.

Kirtai commented 4 years ago

Yep, builds fine now :)