Started by Sirius, December 05, 2019, 04:47:17 PM
0 Members and 1 Guest are viewing this topic.
simconvoi.cc:8412: undefined reference to `vehicle_t::check_way_constraints(weg_t const&) const'
Quote from: freddyhayward on January 22, 2020, 05:32:26 AMThe new version won't build on my machine nor on the server. I get the error:Code Select Expandsimconvoi.cc:8412: undefined reference to `vehicle_t::check_way_constraints(weg_t const&) const'And after checking the relevant code I don't have a clue what the issue is.
===> LD build/default/simutrans-extendedbuild/default/simconvoi.o: In function `convoi_t::check_way_constraints_of_all_vehicles(weg_t const&) const':simconvoi.cc:(.text+0x110fb): undefined reference to `vehicle_t::check_way_constraints(weg_t const&) const'collect2: error: ld returned 1 exit statuscommon.mk:21: recipe for target 'build/default/simutrans-extended' failedmake: *** [build/default/simutrans-extended] Error 1
Quote from: jamespetts on January 22, 2020, 11:20:04 AMI think that the nightly server has managed to build the latest version, since the build date for the version available on the server is early this morning, and there is no logic in the automatic build scripts to revert to an earlier commit if the current build fails to compile.
QuoteCan I ask one of you to re-test this bug with the nightly binary from the server to confirm this?
QuoteI am afraid that the code appears to be entirely in order, suggesting that the problem may be with the compilers that you are using. May I ask what versions of what compilers that you are each using?
QuoteEdit: I should note that the only slightly unusual thing about this method is its inline declaration. There are some compilers that do not like inline declaration for functions that are not defined, but only declared, in the header file; I suspect that the current "inline" modifier has no effect in any event. I will remove "inline"; I should be grateful if you could test whether that helps.