The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Ves on September 27, 2016, 06:29:20 PM

Title: [devel-new-2] 0c758fb - error on compiling "timespec"
Post by: Ves on September 27, 2016, 06:29:20 PM
When I try to compile the latest build I get this error:
Severity Code Description Project File Line Suppression State
Error C2011 'timespec': 'struct' type redefinition Simutrans-Experimental C:\Users\Victor\Documents\GitHub\OpenTTD\shared\include\pthread.h 320

Title: Re: [devel-new-2] 0c758fb - error on compiling "timespec"
Post by: jamespetts on September 27, 2016, 08:11:19 PM
May I ask which compiler that you are using?
Title: Re: [devel-new-2] 0c758fb - error on compiling "timespec"
Post by: Ves on September 27, 2016, 08:44:48 PM
I use msvs 2015 on Windows 10
Title: Re: [devel-new-2] 0c758fb - error on compiling "timespec"
Post by: jamespetts on September 27, 2016, 09:40:00 PM
This was the same problem as I had and fixed to make it work with Visual Studio 2015: see this thread (http://forum.simutrans.com/index.php?topic=14705.0) for some tips for compiling in that environment.
Title: Re: [devel-new-2] 0c758fb - error on compiling "timespec"
Post by: Junna on September 28, 2016, 01:59:08 PM
I have Windows 7 and I get this error also on attempt to compile.
Title: Re: [devel-new-2] 0c758fb - error on compiling "timespec"
Post by: Ves on September 28, 2016, 02:50:57 PM
I have been compiling in this evironment for a very long time without problems, the problem started just now. Did you have to recompile some of you libraries? The forum thread seems to suggest that one should download DrSupergoods patch and recompile a bunch of stuff, and I was really hoping that I could avoid that.
Title: Re: [devel-new-2] 0c758fb - error on compiling "timespec"
Post by: jamespetts on September 28, 2016, 03:12:46 PM
The patch has been applied, so there is no need to apply it again. You will need to recompile bzlib, however,and get the latest libraries from Open TTD.
Title: Re: [devel-new-2] 0c758fb - error on compiling "timespec"
Post by: Junna on September 28, 2016, 04:48:24 PM
I updated to the latest bundle off ottd website and updated those, and I never compiled bzlib myself to begin with, and I still get it.