News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

New external dependency >

Started by hreintke, October 27, 2012, 09:50:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hreintke

LS,

I am working on a patch to add additional info to fabdetails and have a compiling/working verision which is displayed as $ svnversion 5690:5837M. I updated with svn update to $ svnversion 6010M.

However, now I get unresolved error messages when compiling.


1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall nwc_scenario_rules_t::rdwr(void)" (?rdwr@nwc_scenario_rules_t@@UAEXXZ)
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall nwc_scenario_rules_t::do_command(class karte_t *)" (?do_command@nwc_scenario_rules_t@@UAEXPAVkarte_t@@@Z)
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall nwc_scenario_t::rdwr(void)" (?rdwr@nwc_scenario_t@@UAEXXZ)
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall nwc_scenario_t::execute(class karte_t *)" (?execute@nwc_scenario_t@@UAE_NPAVkarte_t@@@Z)
1>optionen.obj : error LNK2001: unresolved external symbol "public: __thiscall scenario_info_t::scenario_info_t(class karte_t *)" (??0scenario_info_t@@QAE@PAVkarte_t@@@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "private: char const * __thiscall script_vm_t::intern_call_function(int,bool)" (?intern_call_function@script_vm_t@@AAEPBDH_N@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "private: char const * __thiscall script_vm_t::intern_start_function(char const *)" (?intern_start_function@script_vm_t@@AAEPBDPBD@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall script_vm_t::eval_string(char const *)" (?eval_string@script_vm_t@@QAEPBDPBD@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall script_vm_t::call_script(char const *)" (?call_script@script_vm_t@@QAEPBDPBD@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: __thiscall script_vm_t::~script_vm_t(void)" (??1script_vm_t@@QAE@XZ)
1>scenario.obj : error LNK2001: unresolved external symbol "public: __thiscall script_vm_t::script_vm_t(void)" (??0script_vm_t@@QAE@XZ)
1>scenario.obj : error LNK2001: unresolved external symbol "public: static char const * __cdecl dynamic_string::fetch_result(char const *,class script_vm_t *,class dynamic_string *,bool)" (?fetch_result@dynamic_string@@SAPBDPBDPAVscript_vm_t@@PAV1@_N@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: void __thiscall dynamic_string::update(class script_vm_t *,class spieler_t *,bool)" (?update@dynamic_string@@QAEXPAVscript_vm_t@@PAVspieler_t@@_N@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: __thiscall dynamic_string::~dynamic_string(void)" (??1dynamic_string@@QAE@XZ)
1>scenario.obj : error LNK2001: unresolved external symbol "void __cdecl register_export_function(struct SQVM *,class karte_t *)" (?register_export_function@@YAXPAUSQVM@@PAVkarte_t@@@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: static class plainstring __cdecl script_api::param<class plainstring>::get(struct SQVM *,int)" (?get@?$param@Vplainstring@@@script_api@@SA?AVplainstring@@PAUSQVM@@H@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: static int __cdecl script_api::param<unsigned int>::push(struct SQVM *,unsigned int const &)" (?push@?$param@I@script_api@@SAHPAUSQVM@@ABI@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: static int __cdecl script_api::param<unsigned short>::push(struct SQVM *,unsigned short const &)" (?push@?$param@G@script_api@@SAHPAUSQVM@@ABG@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: static bool __cdecl script_api::param<bool>::get(struct SQVM *,int)" (?get@?$param@_N@script_api@@SA_NPAUSQVM@@H@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: static int __cdecl script_api::param<class koord3d>::push(struct SQVM *,class koord3d const &)" (?push@?$param@Vkoord3d@@@script_api@@SAHPAUSQVM@@ABVkoord3d@@@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: static int __cdecl script_api::param<int>::get(struct SQVM *,int)" (?get@?$param@H@script_api@@SAHPAUSQVM@@H@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: static int __cdecl script_api::param<short>::push(struct SQVM *,short const &)" (?push@?$param@F@script_api@@SAHPAUSQVM@@ABF@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: static int __cdecl script_api::param<unsigned char>::push(struct SQVM *,unsigned char const &)" (?push@?$param@E@script_api@@SAHPAUSQVM@@ABE@Z)
1>scenario.obj : error LNK2001: unresolved external symbol _sq_poptop
1>scenario.obj : error LNK2001: unresolved external symbol "void __cdecl export_global_constants(struct SQVM *)" (?export_global_constants@@YAXPAUSQVM@@@Z)
1>scenario.obj : error LNK2001: unresolved external symbol "public: void __thiscall scenario_info_t::open_result_tab(void)" (?open_result_tab@scenario_info_t@@QAEXXZ)


Is there an additional external library needed ?

Herman

Dwachs

You have to update the project file: a lot of source files are not included. Please add anything in

dataobj
script
script/api (except api_doc, api_base, api_skeleton)
squirrel
squirrel/squirrel
squirrel/sqstdlib
Parsley, sage, rosemary, and maggikraut.

Ters

Actually, if you look closely at the unresolved symbols, you'll find some German words. That's a sign that it is Simutrans code that's missing, and not something else. Perhaps the only universal advantage of coding in German, or something other than English in general.

hreintke

Dwachs, Ters,

Thanks for the help, solved my issue.

And I again learned more about keeping my local copy working. So I have to take specific action if a file is added during svn update.
I expeted VC10 take care of that but understand that it is manul action from now on.

BTW, for anyone having the same issue : also had to include gui/scenario_info.cc

Herman

prissi

The project file should be updated. I could compile with CV2010 without problem.

Dwachs

There is no project file for VS2010 in the repository anymore.
Parsley, sage, rosemary, and maggikraut.

prissi

No, because there is no need to have a seperate one since both files deviate would only in the line of the version number. Open Simutrans.sln works fine on MSVC2010 too. You can convert this once and then any changes are in both.

The MSVC 2010 project file was outdated and contained local path hardcode to C:\program files\ and other ugly stuff.