Closed NaturesWitness closed 11 years ago
I think the project files are missing the new json handlers added in #2874 Specifically they're missing json.cppp, json.h, init.cpp, init.h
Okay added those four files to the project, and it compiles. However, when you try to run Cata, it just immediatley closes again, no errors, windows or anything. Any idea what could cause this?
Okay finally got this working again must have been a bug in my build folder or something, thanks for telling me about the missing files I'll do a PR to add them in as it doesn't look like it's been fixed yet.
Okay when trying to compile Cata got this mess;
||=== Cataclysm, Release ===| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wcwidth.c||In function 'int mk_wcwidth(wchar_t)':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wcwidth.c|202|warning: comparison is always false due to limited range of data type [-Wtype-limits]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wcwidth.c|202|warning: comparison is always true due to limited range of data type [-Wtype-limits]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wcwidth.c|203|warning: comparison is always false due to limited range of data type [-Wtype-limits]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wcwidth.c|203|warning: comparison is always true due to limited range of data type [-Wtype-limits]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\disease.cpp||In function 'std::string dis_description(disease)':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\disease.cpp|2018|warning: control reaches end of non-void function [-Wreturn-type]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\disease.cpp||In function 'std::string dis_name(disease)':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\disease.cpp|1599|warning: control reaches end of non-void function [-Wreturn-type]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\disease.cpp||In function 'int disease_speed_boost(disease)':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\disease.cpp|1359|warning: control reaches end of non-void function [-Wreturn-type]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\iuse.cpp||In function 'bool use_healingitem(game, player, item, int, int, int, std::string, std::string)':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\iuse.cpp|411|warning: 'bp_healed' may be used uninitialized in this function [-Wmaybe-uninitialized]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\npcmove.cpp||In member function 'void npc::healplayer(game, player&)':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\npcmove.cpp|1720|warning: 'worst' may be used uninitialized in this function [-Wmaybe-uninitialized]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\npcmove.cpp||In member function 'void npc::healself(game)':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\npcmove.cpp|1775|warning: 'worst' may be used uninitialized in this function [-Wmaybe-uninitialized]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\overmap.cpp||In member function 'point overmap::displaynotes(game, int) const':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\overmap.cpp|897|warning: 'cur_it' may be used uninitialized in this function [-Wmaybe-uninitialized]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wcwidth.c||In function 'mk_wcwidth':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wcwidth.c|202|warning: comparison is always false due to limited range of data type [-Wtype-limits]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wcwidth.c|202|warning: comparison is always true due to limited range of data type [-Wtype-limits]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wcwidth.c|203|warning: comparison is always false due to limited range of data type [-Wtype-limits]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wcwidth.c|203|warning: comparison is always true due to limited range of data type [-Wtype-limits]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp||In function 'bool WinCreate()':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::cbSize' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::style' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::lpfnWndProc' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::cbClsExtra' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::cbWndExtra' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::hInstance' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::hIcon' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::hCursor' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::hbrBackground' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::lpszMenuName' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::lpszClassName' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|50|warning: missing initializer for member '_WNDCLASSEXA::hIconSm' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp||In function 'void WinDestroy()':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|90|warning: ordered comparison of pointer with integer zero [-Wextra]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp||In function 'WINDOW* curses_init()':| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFOHEADER::biWidth' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFOHEADER::biHeight' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFOHEADER::biPlanes' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFOHEADER::biBitCount' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFOHEADER::biCompression' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFOHEADER::biSizeImage' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFOHEADER::biXPelsPerMeter' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFOHEADER::biYPelsPerMeter' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFOHEADER::biClrUsed' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFOHEADER::biClrImportant' [-Wmissing-field-initializers]| C:\Documents and Settings\Mason\My Documents\GitHub\Cataclysm-DDA\wincurse.cpp|448|warning: missing initializer for member 'tagBITMAPINFO::bmiColors' [-Wmissing-field-initializers]| obj\Release\bionics.o:bionics.cpp|| undefined reference to
JsonObject::get_string(std::string)'| obj\Release\bionics.o:bionics.cpp|| undefined reference to
JsonObject::get_string(std::string)'| obj\Release\bionics.o:bionics.cpp|| undefined reference toJsonObject::get_string(std::string)'| obj\Release\bionics.o:bionics.cpp|| undefined reference to
JsonObject::get_int(std::string, int)'| obj\Release\bionics.o:bionics.cpp|| undefined reference toJsonObject::get_int(std::string, int)'| obj\Release\bionics.o:bionics.cpp|| undefined reference to
JsonObject::get_bool(std::string, bool)'| obj\Release\bionics.o:bionics.cpp|| undefined reference toJsonObject::get_bool(std::string, bool)'| obj\Release\bionics.o:bionics.cpp|| undefined reference to
JsonObject::get_bool(std::string, bool)'| ||=== Build finished: 8 errors, 39 warnings (16 minutes, 52 seconds) ===|Most of this has been here for a while and is just warnings anyway. The last 8, however, are full-blown errors that bring the compile to a screeching halt. They're all going to bionics.cpp, so I assume that this is some sort of error that snuck in with the new sunglasses PR. It may be just a header reference got forgotten, but we should probably try and fix this.