The International Simutrans Forum

Development => Technical Documentation => Topic started by: Miziiik on September 03, 2013, 02:12:56 PM

Title: Compile error using MSVC 2010
Post by: Miziiik on September 03, 2013, 02:12:56 PM
Hello,

I used this TUT: http://forum.simutrans.com/index.php?topic=652.0 (http://forum.simutrans.com/index.php?topic=652.0)

And MSVC 2010 shows me errors:
1>------ Build started: Project: Simutrans, Configuration: Debug Win32 ------
1>  gdate není názvem vnitřního ani vnějšího příkazu,
1>  spustitelného programu nebo dávkového souboru.
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: The command "gdate --rfc-2822
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: :VCEnd" exited with code 9009.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I think that some libraries are missing. I want to compile libraries by myself but makefile isn't working for me and I don't know all needed libraries.  :-[

And one more question: How can I set compiling to SDL ver.?

Thanks for help  :)
Title: Re: Compile error using MSVC 2010
Post by: Dwachs on September 03, 2013, 02:17:25 PM
I have never seen this error message.
Title: Re: Compile error using MSVC 2010
Post by: Miziiik on September 03, 2013, 02:40:56 PM
In English it says too: "GDATE is not an internal or external command,
operable program or batch file."

Can someone uploads or sends links or names all needed libraries?  ;)

1. option is that i hanven't all libraries needed
2. option is that I have old libraries

or I don't know why...

This says when I use VS's MSVC10 files... When I use original files from SVN and update it to MSVC2010 it says many errors about missing something
Title: Re: Compile error using MSVC 2010
Post by: Ters on September 03, 2013, 04:01:21 PM
The error message seems to rule out libraries. It seems to be some form of tool used to format a date (probably the current date) as part of the build process. Why the MSVC build wants to do that, I do not know (since I compile with GCC).
Title: Re: Compile error using MSVC 2010
Post by: Miziiik on September 03, 2013, 04:04:39 PM
Ok, I fixed it and I don't know how... Now it shows only on err:
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
Title: Re: Compile error using MSVC 2010
Post by: VS on September 03, 2013, 08:01:57 PM
Oopsies? I used the "date" utility from mingw32 (called "gdate" to prevent conflict with windows command) to measure compilation speed. I am not aware of sharing the project file with this setting enabled, but apparently it happened.

Since you got this, do check the directories and post-link events, I set up the project so that it a) clocks compilation, b) starts the program in existing installation directory and c) copies the exe anyway, to test it outised msvc as well.

The linking warning you get should be unrelated to these problems.