News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Merging Standard 112.x into Experimental

Started by Bernd Gabriel, November 03, 2012, 05:04:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

Hmm - odd. Attempting to compile with a release build (I was attempting to build a release candidate for community testing) fails with these errors:


1>imagelist3d_reader.obj : error LNK2001: unresolved external symbol __imp__fread
1>imagelist3d_reader.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
1>msvcprt.lib(newaop_s.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
1>gameinfo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual char const * __thiscall std::exception::what(void)const " (__imp_?what@exception@std@@UBEPBDXZ)
1>gameinfo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall std::exception::~exception(void)" (__imp_??1exception@std@@UAE@XZ)
1>gameinfo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::exception::exception(char const * const &)" (__imp_??0exception@std@@QAE@ABQBD@Z)
1>gameinfo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::exception::exception(class std::exception const &)" (__imp_??0exception@std@@QAE@ABV01@@Z)
1>gameinfo.obj : error LNK2001: unresolved external symbol __imp__memmove
1>gameinfo.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
1>gameinfo.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>gameinfo.obj : error LNK2001: unresolved external symbol __imp__stricmp
1>OLDNAMES.lib(stricmp.obi) : error LNK2001: unresolved external symbol __imp__stricmp
1>gameinfo.obj : error LNK2001: unresolved external symbol __imp__atol
1>gameinfo.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>livery_scheme.obj : error LNK2001: unresolved external symbol "struct __type_info_node __type_info_root_node" (?__type_info_root_node@@3U__type_info_node@@A)
1>livery_scheme.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall type_info::name(struct __type_info_node *)const " (__imp_?name@type_info@@QBEPBDPAU__type_info_node@@@Z)
1>network_address.obj : error LNK2001: unresolved external symbol __imp__sprintf
1>network_address.obj : error LNK2001: unresolved external symbol __imp__strchr
1>network_address.obj : error LNK2001: unresolved external symbol __imp__atoi
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __imp__feof
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __imp__free
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __imp__rewind
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __imp__strdup
1>OLDNAMES.lib(strdup.obi) : error LNK2001: unresolved external symbol __imp__strdup
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __imp__remove
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol _atexit
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __imp__fopen
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __purecall
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __imp__ftell
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __imp__fseek
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __imp__fclose
1>network_cmd_ingame.obj : error LNK2001: unresolved external symbol __imp__chdir
1>OLDNAMES.lib(chdir.obi) : error LNK2001: unresolved external symbol __imp__chdir
1>network_file_transfer.obj : error LNK2001: unresolved external symbol __imp__fflush
1>network_file_transfer.obj : error LNK2001: unresolved external symbol __imp__printf
1>network_file_transfer.obj : error LNK2001: unresolved external symbol __imp__strnicmp
1>OLDNAMES.lib(strnicmp.obi) : error LNK2001: unresolved external symbol __imp__strnicmp
1>network_file_transfer.obj : error LNK2001: unresolved external symbol __imp__fwrite
1>display_settings.obj : error LNK2001: unresolved external symbol __imp__strncat
1>api_function.obj : error LNK2001: unresolved external symbol __imp__fprintf
1>dynamic_string.obj : error LNK2001: unresolved external symbol __imp__strcspn
1>simsys.obj : error LNK2001: unresolved external symbol __imp__ShellExecuteExA@4
1>simsys.obj : error LNK2001: unresolved external symbol __imp__mkdir
1>OLDNAMES.lib(mkdir.obi) : error LNK2001: unresolved external symbol __imp__mkdir
1>simsys_w.obj : error LNK2001: unresolved external symbol __imp____argv
1>simsys_w.obj : error LNK2001: unresolved external symbol __imp____argc
1>simsys_w32_png.obj : error LNK2001: unresolved external symbol __imp__malloc
1>sqstdio.obj : error LNK2001: unresolved external symbol __imp____iob_func
1>sqstdmath.obj : error LNK2001: unresolved external symbol __imp__ceil
1>sqstdmath.obj : error LNK2001: unresolved external symbol __imp__rand
1>sqstdmath.obj : error LNK2001: unresolved external symbol __imp__srand
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__isspace
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__isalnum
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__ispunct
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__isprint
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__isalpha
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__isdigit
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__isupper
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__iscntrl
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__longjmp
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__islower
1>sqstdrex.obj : error LNK2001: unresolved external symbol __imp__isxdigit
1>sqstdstring.obj : error LNK2001: unresolved external symbol __imp__strtok
1>sqstdsystem.obj : error LNK2001: unresolved external symbol __imp__rename
1>sqstdsystem.obj : error LNK2001: unresolved external symbol __imp___gmtime64
1>sqstdsystem.obj : error LNK2001: unresolved external symbol __imp__system
1>sqstdsystem.obj : error LNK2001: unresolved external symbol __imp__clock
1>sqstdsystem.obj : error LNK2001: unresolved external symbol __imp___localtime64
1>sqstdsystem.obj : error LNK2001: unresolved external symbol __imp__getenv
1>sqstdsystem.obj : error LNK2001: unresolved external symbol __imp___time64
1>sqbaselib.obj : error LNK2001: unresolved external symbol __imp__strtod
1>sqbaselib.obj : error LNK2001: unresolved external symbol __imp__strstr
1>sqbaselib.obj : error LNK2001: unresolved external symbol __imp__strtol
1>sqbaselib.obj : error LNK2001: unresolved external symbol __imp__tolower
1>sqbaselib.obj : error LNK2001: unresolved external symbol __imp__toupper
1>sqcompiler.obj : error LNK2001: unresolved external symbol __imp__vsprintf
1>sqlexer.obj : error LNK2001: unresolved external symbol __imp__strtoul
1>sqmem.obj : error LNK2001: unresolved external symbol __imp__realloc
1>cbuffer_t.obj : error LNK2001: unresolved external symbol __imp___vsprintf_p
1>einstellungen.obj : error LNK2001: unresolved external symbol __imp__sscanf
1>einstellungen.obj : error LNK2001: unresolved external symbol __imp__memchr
1>fahrplan_gui.obj : error LNK2001: unresolved external symbol __imp__strncmp
1>font.obj : error LNK2001: unresolved external symbol __imp__calloc
1>font.obj : error LNK2001: unresolved external symbol __imp__fgets
1>font.obj : error LNK2001: unresolved external symbol __imp__getc
1>gebaeude.obj : error LNK2001: unresolved external symbol __imp__strrchr
1>gui_component_table.obj : error LNK2001: unresolved external symbol ___RTtypeid
1>gui_flowtext.obj : error LNK2001: unresolved external symbol __imp__strncpy
1>loadsave.obj : error LNK2001: unresolved external symbol __imp__strerror
1>loadsave.obj : error LNK2001: unresolved external symbol __imp___errno
1>loadsave.obj : error LNK2001: unresolved external symbol __imp__ferror
1>loadsave_frame.obj : error LNK2001: unresolved external symbol __imp__strftime
1>loadsave_frame.obj : error LNK2001: unresolved external symbol __imp___stat64i32
1>csv.obj : error LNK2001: unresolved external symbol __imp__strpbrk
1>log.obj : error LNK2001: unresolved external symbol __imp__abort
1>log.obj : error LNK2001: unresolved external symbol __imp__fputs
1>log.obj : error LNK2001: unresolved external symbol __imp__vfprintf
1>log.obj : error LNK2001: unresolved external symbol __imp__puts
1>obj_reader.obj : error LNK2001: unresolved external symbol __imp__fgetc
1>savegame_frame.obj : error LNK2001: unresolved external symbol __imp__SHFileOperationA@4
1>searchfolder.obj : error LNK2001: unresolved external symbol __imp___findnext64i32
1>searchfolder.obj : error LNK2001: unresolved external symbol __imp___findfirst64i32
1>simgraph16.obj : error LNK2001: unresolved external symbol __imp__access
1>OLDNAMES.lib(access.obi) : error LNK2001: unresolved external symbol __imp__access
1>simgraph16.obj : error LNK2001: unresolved external symbol __imp__exit
1>simmain.obj : error LNK2001: unresolved external symbol __imp__getcwd
1>OLDNAMES.lib(getcwd.obi) : error LNK2001: unresolved external symbol __imp__getcwd
1>sprachen.obj : error LNK2001: unresolved external symbol __imp__atof
1>LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _fwrite
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _fwrite
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _ferror
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _ferror
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _fread
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _fread
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol __errno
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _fclose
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _fclose
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _free
1>zlibstat.lib(zutil.obj) : error LNK2001: unresolved external symbol _free
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _free
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol __vsnprintf
1>libbz2.lib(compress.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libbz2.lib(decompress.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libbz2.lib(blocksort.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>zlibstat.lib(trees.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>zlibstat.lib(inftrees.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libbz2.lib(compress.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libbz2.lib(decompress.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libbz2.lib(blocksort.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>zlibstat.lib(trees.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>zlibstat.lib(inftrees.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol __chkstk
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol __chkstk
1>libbz2.lib(huffman.obj) : error LNK2001: unresolved external symbol __chkstk
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _fflush
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _fflush
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _fseek
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _fputc
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _malloc
1>zlibstat.lib(zutil.obj) : error LNK2001: unresolved external symbol _malloc
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _malloc
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _strerror
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _clearerr
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _ftell
1>libbz2.lib(blocksort.obj) : error LNK2001: unresolved external symbol _fprintf
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _fprintf
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _fprintf
1>libbz2.lib(compress.obj) : error LNK2001: unresolved external symbol _fprintf
1>libbz2.lib(decompress.obj) : error LNK2001: unresolved external symbol _fprintf
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol __fdopen
1>OLDNAMES.lib(fdopen.obj) : error LNK2001: unresolved external symbol __fdopen
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _fopen
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _fopen
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _sprintf
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _memcpy
1>zlibstat.lib(deflate.obj) : error LNK2001: unresolved external symbol _memcpy
1>zlibstat.lib(inflate.obj) : error LNK2001: unresolved external symbol _memcpy
1>libbz2.lib(decompress.obj) : error LNK2001: unresolved external symbol _memset
1>libbz2.lib(blocksort.obj) : error LNK2001: unresolved external symbol _memset
1>zlibstat.lib(gzio.obj) : error LNK2001: unresolved external symbol _memset
1>zlibstat.lib(deflate.obj) : error LNK2001: unresolved external symbol _memset
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _memset
1>libbz2.lib(compress.obj) : error LNK2001: unresolved external symbol _memset
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _ungetc
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _fgetc
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _fdopen
1>OLDNAMES.lib(fdopen.obj) : error LNK2001: unresolved external symbol _fdopen
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _setmode
1>OLDNAMES.lib(setmode.obj) : error LNK2001: unresolved external symbol _setmode
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _fileno
1>OLDNAMES.lib(fileno.obj) : error LNK2001: unresolved external symbol _fileno
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol ___iob_func
1>libbz2.lib(compress.obj) : error LNK2001: unresolved external symbol ___iob_func
1>libbz2.lib(decompress.obj) : error LNK2001: unresolved external symbol ___iob_func
1>libbz2.lib(blocksort.obj) : error LNK2001: unresolved external symbol ___iob_func
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _isdigit
1>libbz2.lib(bzlib.obj) : error LNK2001: unresolved external symbol _exit
1>libbz2.lib(compress.obj) : error LNK2001: unresolved external symbol __fltused
1>libbz2.lib(blocksort.obj) : error LNK2001: unresolved external symbol __fltused
1>OLDNAMES.lib(stricmp.obi) : error LNK2001: unresolved external symbol __imp___stricmp
1>OLDNAMES.lib(strdup.obi) : error LNK2001: unresolved external symbol __imp___strdup
1>OLDNAMES.lib(chdir.obi) : error LNK2001: unresolved external symbol __imp___chdir
1>OLDNAMES.lib(strnicmp.obi) : error LNK2001: unresolved external symbol __imp___strnicmp
1>OLDNAMES.lib(mkdir.obi) : error LNK2001: unresolved external symbol __imp___mkdir
1>OLDNAMES.lib(access.obi) : error LNK2001: unresolved external symbol __imp___access
1>OLDNAMES.lib(getcwd.obi) : error LNK2001: unresolved external symbol __imp___getcwd
1>OLDNAMES.lib(setmode.obj) : error LNK2001: unresolved external symbol __setmode
1>OLDNAMES.lib(fileno.obj) : error LNK2001: unresolved external symbol __fileno
1>.\simutrans\Simutrans-Experimental.exe : fatal error LNK1120: 142 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Any thoughts?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Bernd Gabriel

Looks like all standard c libraries are missing.

I pushed a project file that enabled me to compile and link a release configuration.

Best way to fix the release configuration is to

1) save the "xxx (sdl)" additional libraries and
2) copy the linker input settings of the debug configuration to the "all configurations" configuration
3) add the additional sdl libraries to the sdl configurations.

(I must admit, that I never compile the sdl configurations and hence forgot to save and restore them :( )
The journey is the reward!

jamespetts

I have also given up compiling the SDL configurations; but the errors that I was getting above were from the non-SDL version. Does your fix apply to the non-SDL version?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Bernd Gabriel

The journey is the reward!

jamespetts

Hmm, in which case, I don't understand the reference to "save the "xxx (sdl)" additional libraries"...
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

jamespetts

Thank you for the fixes - I have been able to get a release candidate version out for testing: see here for download link and details.

I am not able to get Makeobj to compile, however. I am getting this output in the release configuration:


1>------ Build started: Project: Makeobj, Configuration: Release Win32 ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(299,5): warning MSB8004: Output Directory does not end with a trailing slash.  This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.
1>  bild_besch.cc
1>  bridge_writer.cc
1>  building_writer.cc
1>  citycar_writer.cc
1>  crossing_writer.cc
1>  factory_writer.cc
1>  get_climate.cc
1>  get_waytype.cc
1>  good_writer.cc
1>  ground_writer.cc
1>  groundobj_writer.cc
1>  image_writer.cc
1>  imagelist2d_writer.cc
1>  imagelist3d_writer.cc
1>  imagelist_writer.cc
1>  obj_node.cc
1>  obj_writer.cc
1>  pedestrian_writer.cc
1>  roadsign_writer.cc
1>  root_writer.cc
1>  Compiling...
1>  sim_writer.cc
1>  skin_writer.cc
1>  sound_writer.cc
1>  text_writer.cc
1>  tree_writer.cc
1>  tunnel_writer.cc
1>..\besch\writer\tunnel_writer.cc(18): warning C4101: 'i' : unreferenced local variable
1>..\besch\writer\tunnel_writer.cc(18): warning C4101: 'pos' : unreferenced local variable
1>  vehicle_writer.cc
1>  way_obj_writer.cc
1>  way_writer.cc
1>  xref_writer.cc
1>  freelist.cc
1>  tabfile.cc
1>  simdebug.cc
1>  simmem.cc
1>  simtools.cc
1>  float32e8_t.cc
1>  log.cc
1>  searchfolder.cc
1>  simstring.cc
1>..\utils\simstring.cc(23): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
1>..\utils\simstring.cc(26): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
1>..\utils\simstring.cc(105): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
1>..\utils\simstring.cc(108): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
1>..\utils\simstring.cc(163): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
1>..\utils\simstring.cc(167): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
1>..\utils\simstring.cc(257): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(188) : see declaration of 'strncpy'
1>  makeobj.cc
1>  dr_rdpng.c
1>c1 : fatal error C1083: Cannot open source file: '..\utils\dr_rdpng.c': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Any thoughts on what might be the problem?

Also, I am still getting the problem with the passenger destination markers on the minimap being a pair of lines, one straight, one diagonal, instead of a box.

One other matter: have you looked into the multi-threading support that has been put into the more recent versions of Standard? Does this work on this version, do you know? Indeed, is it enabled in the released versions of Standard?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Dwachs

Quote
1>c1 : fatal error C1083: Cannot open source file: '..\utils\dr_rdpng.c': No such file or directory
This error message is quite self-explanatory. Hint: look into utils-subdirectory.
Parsley, sage, rosemary, and maggikraut.

Bernd Gabriel

It is named "dr_rdpng.cc" (double C extension) not "dr_rdpng.c"
The journey is the reward!

jamespetts

#43
Ahh, yes, I see. I have fixed that in the project file. I have now managed to compile Makeobj. However, it crashes (with no error message) every time that I run it - would you be able to look into this? Thank you!

Edit: As an aside, I have managed to get multi-threading working, although it was necessary first to download the pthread package, add it to my simutrans code directory, modify the project file to point to the correct library and include files, set MULTI_THREAD=4 for all builds other than the command line server builds (since multi-threading only affects graphics, there is no point in having the command line server multi-threaded), and include pthreadVC2.dll in the Simutrans directory (and this .dll file will have to be distributed with future Windows Simutrans-Experimental releases, too).

Edit 2: Some things to test: (1) network mode generally (including compiling the command line server); (2) dragging of tunnel, elevated way, raise/lower ground and tree planting tools in network mode; (3) makeobj; (4) nettool; (5) pakset downloader (when started with no paksets - how does this work with Experimental, I wonder...?); (6) powerline tunnels; (7) scripted scenarios; (8) non-rectangular industries, station extensions and attractions; and (9) stop dragging.

And another bug, I'm afraid: the settings menu accessed by the "i" key in Pak128.Britain-Ex seems to be corrupted: when the window is opened, closed and opened again, different values appear than when the window was previously opened. This is often caused by a mismatch between the dialogue controls for the values and the underlying settings themselves.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi

THe settings wrong means most likely that the number of lines setting values and the one reading are wrong. Usually there is then a line missied.

TurfIt

Did you load the game paused and open the settings dialogue right away? I've found that to give incorrect numbers before. Run time for a half second, pause, then it's correct.

jamespetts

#46
Quote from: TurfIt on December 05, 2012, 08:52:26 PM
Did you load the game paused and open the settings dialogue right away? I've found that to give incorrect numbers before. Run time for a half second, pause, then it's correct.

Hmm - this should perhaps be a bug fixed in Standard...?

However, this is not the problem here: I let it run a good few clear seconds without pausing, and the problem was still the same.

Edit: I should note that I am still getting the bouncing instead of reversing at rail lines ending in reversing waypoints, as previously reported.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Bernd Gabriel

#47
I've started to fix loading / saving 112.x standard / experimental games ...

Edit: fixed in my "112.x merge" branch.
The journey is the reward!

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Bernd Gabriel

I've started to fix: Standard aircrafts fly without using the run way.
Actually this seems to be an issues with waypoints in the air...
The journey is the reward!

jamespetts

Thank you for your work on this. Oddly, when I merge the latest work from your 112.x-merge branch, I get the following compile error:


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>scenario.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>scenario.obj : error LNK2019: unresolved external symbol "public: virtual bool __thiscall nwc_scenario_t::execute(class karte_t *)" (?execute@nwc_scenario_t@@UAE_NPAVkarte_t@@@Z) referenced in function "public: bool __thiscall scenario_t::is_tool_allowed(class spieler_t *,unsigned short,short)" (?is_tool_allowed@scenario_t@@QAE_NPAVspieler_t@@GF@Z)
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>scenario.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>scenario.obj : error LNK2019: 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) referenced in function __ehhandler$??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ
1>network_cmd_ingame.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall CSV_t::get_str(void)const " (?get_str@CSV_t@@QBEPBDXZ) referenced in function "public: static void __cdecl nwc_nick_t::server_tools(class karte_t *,unsigned int,unsigned char,char const *)" (?server_tools@nwc_nick_t@@SAXPAVkarte_t@@IEPBD@Z)
1>server_frame.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall CSV_t::get_str(void)const " (?get_str@CSV_t@@QBEPBDXZ)
1>network_cmd_ingame.obj : error LNK2019: unresolved external symbol "public: void __thiscall CSV_t::add_field(int)" (?add_field@CSV_t@@QAEXH@Z) referenced in function "public: static void __cdecl nwc_nick_t::server_tools(class karte_t *,unsigned int,unsigned char,char const *)" (?server_tools@nwc_nick_t@@SAXPAVkarte_t@@IEPBD@Z)
1>network_cmd_ingame.obj : error LNK2019: unresolved external symbol "public: void __thiscall CSV_t::add_field(char const *)" (?add_field@CSV_t@@QAEXPBD@Z) referenced in function "public: static void __cdecl nwc_nick_t::server_tools(class karte_t *,unsigned int,unsigned char,char const *)" (?server_tools@nwc_nick_t@@SAXPAVkarte_t@@IEPBD@Z)
1>server_frame.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CSV_t::next_line(void)" (?next_line@CSV_t@@QAE_NXZ) referenced in function "private: bool __thiscall server_frame_t::update_serverlist(void)" (?update_serverlist@server_frame_t@@AAE_NXZ)
1>server_frame.obj : error LNK2019: unresolved external symbol "public: int __thiscall CSV_t::get_next_field(class cbuffer_t &)" (?get_next_field@CSV_t@@QAEHAAVcbuffer_t@@@Z) referenced in function "private: bool __thiscall server_frame_t::update_serverlist(void)" (?update_serverlist@server_frame_t@@AAE_NXZ)
1>server_frame.obj : error LNK2019: unresolved external symbol "public: __thiscall CSV_t::CSV_t(char const *)" (??0CSV_t@@QAE@PBD@Z) referenced in function "private: bool __thiscall server_frame_t::update_serverlist(void)" (?update_serverlist@server_frame_t@@AAE_NXZ)
1>simsys.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteExA@4 referenced in function "bool __cdecl dr_download_pakset(char const *,bool)" (?dr_download_pakset@@YA_NPBD_N@Z)
1>optionen.obj : error LNK2019: unresolved external symbol "public: __thiscall scenario_info_t::scenario_info_t(class karte_t *)" (??0scenario_info_t@@QAE@PAVkarte_t@@@Z) referenced in function "public: virtual bool __thiscall optionen_gui_t::action_triggered(class gui_action_creator_t *,union value_t)" (?action_triggered@optionen_gui_t@@UAE_NPAVgui_action_creator_t@@Tvalue_t@@@Z)
1>scenario.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_frame.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>savegame_frame.obj : error LNK2019: unresolved external symbol __imp__SHFileOperationA@4 referenced in function "protected: virtual bool __thiscall savegame_frame_t::del_action(char const *)" (?del_action@savegame_frame_t@@MAE_NPBD@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "public: __thiscall dynamic_string::~dynamic_string(void)" (??1dynamic_string@@QAE@XZ) referenced in function "public: __thiscall scenario_t::~scenario_t(void)" (??1scenario_t@@QAE@XZ)
1>scenario.obj : error LNK2019: unresolved external symbol "public: __thiscall script_vm_t::~script_vm_t(void)" (??1script_vm_t@@QAE@XZ) referenced in function "public: void * __thiscall script_vm_t::`scalar deleting destructor'(unsigned int)" (??_Gscript_vm_t@@QAEPAXI@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "private: char const * __thiscall script_vm_t::intern_call_function(int,bool)" (?intern_call_function@script_vm_t@@AAEPBDH_N@Z) referenced in function "public: char const * __thiscall script_vm_t::call_function(char const *)" (?call_function@script_vm_t@@QAEPBDPBD@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "private: char const * __thiscall script_vm_t::intern_start_function(char const *)" (?intern_start_function@script_vm_t@@AAEPBDPBD@Z) referenced in function "public: char const * __thiscall script_vm_t::call_function(char const *)" (?call_function@script_vm_t@@QAEPBDPBD@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "void __cdecl register_export_function(struct SQVM *,class karte_t *)" (?register_export_function@@YAXPAUSQVM@@PAVkarte_t@@@Z) referenced in function "private: bool __thiscall scenario_t::load_script(char const *)" (?load_script@scenario_t@@AAE_NPBD@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall script_vm_t::call_script(char const *)" (?call_script@script_vm_t@@QAEPBDPBD@Z) referenced in function "private: bool __thiscall scenario_t::load_script(char const *)" (?load_script@scenario_t@@AAE_NPBD@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "void __cdecl export_global_constants(struct SQVM *)" (?export_global_constants@@YAXPAUSQVM@@@Z) referenced in function "private: bool __thiscall scenario_t::load_script(char const *)" (?load_script@scenario_t@@AAE_NPBD@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "public: __thiscall script_vm_t::script_vm_t(void)" (??0script_vm_t@@QAE@XZ) referenced in function "private: bool __thiscall scenario_t::load_script(char const *)" (?load_script@scenario_t@@AAE_NPBD@Z)
1>scenario.obj : error LNK2019: 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) referenced in function "private: void __thiscall scenario_t::update_won_lost(unsigned short,unsigned short)" (?update_won_lost@scenario_t@@AAEXGG@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "public: void __thiscall scenario_info_t::open_result_tab(void)" (?open_result_tab@scenario_info_t@@QAEXXZ) referenced in function "public: bool __thiscall scenario_t::open_info_win(void)const " (?open_info_win@scenario_t@@QBE_NXZ)
1>scenario.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall script_vm_t::eval_string(char const *)" (?eval_string@script_vm_t@@QAEPBDPBD@Z) referenced in function "public: void __thiscall scenario_t::rdwr(class loadsave_t *)" (?rdwr@scenario_t@@QAEXPAVloadsave_t@@@Z)
1>scenario.obj : error LNK2019: 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) referenced in function "public: int __thiscall scenario_t::completed(int)" (?completed@scenario_t@@QAEHH@Z)
1>scenario.obj : error LNK2019: unresolved external symbol _sq_poptop referenced in function "public: char const * __thiscall script_vm_t::call_function<class plainstring>(char const *,class plainstring &)" (??$call_function@Vplainstring@@@script_vm_t@@QAEPBDPBDAAVplainstring@@@Z)
1>scenario.obj : error LNK2019: 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) referenced in function "public: char const * __thiscall script_vm_t::call_function<class plainstring>(char const *,class plainstring &)" (??$call_function@Vplainstring@@@script_vm_t@@QAEPBDPBDAAVplainstring@@@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "public: static bool __cdecl script_api::param<bool>::get(struct SQVM *,int)" (?get@?$param@_N@script_api@@SA_NPAUSQVM@@H@Z) referenced in function "public: char const * __thiscall script_vm_t::call_function<bool,unsigned char,unsigned short,short>(char const *,bool &,unsigned char,unsigned short,short)" (??$call_function@_NEGF@script_vm_t@@QAEPBDPBDAA_NEGF@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "public: static int __cdecl script_api::param<short>::push(struct SQVM *,short const &)" (?push@?$param@F@script_api@@SAHPAUSQVM@@ABF@Z) referenced in function "public: char const * __thiscall script_vm_t::call_function<bool,unsigned char,unsigned short,short>(char const *,bool &,unsigned char,unsigned short,short)" (??$call_function@_NEGF@script_vm_t@@QAEPBDPBDAA_NEGF@Z)
1>scenario.obj : error LNK2019: 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) referenced in function "public: char const * __thiscall script_vm_t::call_function<bool,unsigned char,unsigned short,short>(char const *,bool &,unsigned char,unsigned short,short)" (??$call_function@_NEGF@script_vm_t@@QAEPBDPBDAA_NEGF@Z)
1>scenario.obj : error LNK2019: 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) referenced in function "public: char const * __thiscall script_vm_t::call_function<bool,unsigned char,unsigned short,short>(char const *,bool &,unsigned char,unsigned short,short)" (??$call_function@_NEGF@script_vm_t@@QAEPBDPBDAA_NEGF@Z)
1>scenario.obj : error LNK2019: 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) referenced in function "public: char const * __thiscall script_vm_t::call_function<class plainstring,unsigned char,unsigned short,class koord3d>(char const *,class plainstring &,unsigned char,unsigned short,class koord3d)" (??$call_function@Vplainstring@@EGVkoord3d@@@script_vm_t@@QAEPBDPBDAAVplainstring@@EGVkoord3d@@@Z)
1>scenario.obj : error LNK2019: unresolved external symbol "public: static int __cdecl script_api::param<int>::get(struct SQVM *,int)" (?get@?$param@H@script_api@@SAHPAUSQVM@@H@Z) referenced in function "public: char const * __thiscall script_vm_t::call_function<int,unsigned char>(char const *,int &,unsigned char)" (??$call_function@HE@script_vm_t@@QAEPBDPBDAAHE@Z)
1>scenario.obj : error LNK2019: 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) referenced in function "public: char const * __thiscall script_vm_t::call_function<int,unsigned int>(char const *,int &,unsigned int)" (??$call_function@HI@script_vm_t@@QAEPBDPBDAAHI@Z)
1>.\simutrans\Simutrans-Experimental-debug.exe : fatal error LNK1120: 34 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Any idea what might have introduced this?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Dwachs

Just stating the obvious: Please try to add all cc-files that could contain the missing functions to your project file (utils/csv.cc, dataobj/network_cmd_scenario.cc, gui/scenario_info.cc,script/script.cc)

Maybe some commits from standard are not merged correctly, too.
Parsley, sage, rosemary, and maggikraut.

jamespetts

I have merged in Bernd's latest changes and my latest fixes on the 10.x branch, and found most of the causes of the linker errors (which I can only attribute to my MSVC++ project file being overwritten by an earlier version somehow - odd).

However, I am still having a difficulty with linker errors concerned with SHFileOperationA and SHELLEXECUTEINFOA in savegame_frame.cc and simsys.cc respectively. Both of those references are related to the system for downloading paksets from Sourceforge automatically. I have produced a temporary workaround that allows Simutrans-Experimental to compile by disabling these things, but the odd thing is that, in Bernd's MSVC++ project file, all that is added is winmm.lib to the additional dependencies, which is already present in my project file, yet I still get the linker errors unless I disable the relevant code.

Any thoughts would be most welcome.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Bernd Gabriel

You must add shell32.lib or (as I did) inherit from standard.
The journey is the reward!

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

jamespetts

I have released a new version of the release candidate with all the latest bug fixes on the main branch and those by Bernd: see here for details.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Milko

Hello

1) There is an untralated text in ship depot (view attach TextNotTranslated).

2) Simutrans standard has a cargo report, 112.x merge no (second attach CargoReport)

Giuseppe

jamespetts

Thank you very much for the reports! Is the first issue unique to the 112.x merge branch, or does it also appear in current released versions? As to the second issue - is the screenshot from Standard or Experimental?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Milko

Hello James

First issue is present also in 10.26, I'm also unable to find the string in simutranslator.

Second issue: The screenshot was taken from simutrans standard, is not present in experimental.

Giuseppe

jamespetts

Thank you for the replies - that is helpful. As to the first - does this only appear in ship depots, or any type of depots?

As to the second, Bernd - would you mind looking into this?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Milko

Hello

Quote from: jamespetts on February 04, 2013, 11:40:01 AM
Thank you for the replies - that is helpful. As to the first - does this only appear in ship depots, or any type of depots?

Any type of depots.

Giuseppe

jamespetts

Thank you - I have found and fixed that issue, and these texts should be translatable from the next release (you can translate them now, but the translation will not work until the next version).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Bernd Gabriel

As to the second issue (Additional infos in depot): Neither can I see these infos in the current standard 112 executable nor in the code, but I will add it to experimental anyhow.
The journey is the reward!

jamespetts

Hmm - perhaps this is from a recent nightly? In any event, this would be a worthwhile addition - thank you!

Edit: Actually, I think that this comes from here; perhaps we need to increment this to merge in the latest Standard release?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Bernd Gabriel

I found the code at last. Downloading it is not enough. Merging helps ;)
The journey is the reward!

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Bernd Gabriel

As the code has been added after my last 112.x merge, I'm now merging aburch's master branch up to commit 2d61e0361d9ca70b50ad96d471e738fb4f8b0ac3.

This could last the entire week...
The journey is the reward!

jamespetts

Your work in merging is very much appreciated (the industry spacing code in particular will be invaluable). Have you had a chance to look at the desyncs issue yet, or were you going to do that after merging the latest changes from Standard?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Milko

Hello Bernd

Compiling your branch 112.x-merge (update 21 february) I obtain an error (in attachment).

Giuseppe

Bernd Gabriel

#69
@Milko: thanks for spotting that issue. Gcc now always uses malloc.

The merge is accomplished. More testers are welcome.
The journey is the reward!