Experimental Physics and Industrial Control System
Yes, it is in my CONFIG_SITE.win32-x86 I think. There was a tech-talk
thread on this a while back. The problem is that if you don't define
_WIN32_WINNT then it picks up a value from one of the Microsoft header
files, and that value may be for a recent Windows release (e.g. Windows
7). If you use that value you can end up producing a .exe file that
will not run on the machine that built it!
Mark
-----Original Message-----
From: Andrew Johnson [mailto:[email protected]]
Sent: Tuesday, November 29, 2011 1:13 PM
To: Mark Rivers
Cc: EPICS tech-talk
Subject: Re: EPICS Base 3.14.12.2-rc1 available for testing
Hi Mark,
On 2011-11-29 Mark Rivers wrote:
> corvette:osi/os/WIN32>diff -u osdTime.cpp.orig osdTime.cpp
> --- osdTime.cpp.orig 2011-11-29 11:40:13.304344427 -0600
> +++ osdTime.cpp 2011-11-29 11:41:19.705649538 -0600
> @@ -60,6 +60,8 @@
> // for mingw
> #if !defined ( MAXLONGLONG )
> #define MAXLONGLONG LL_CONSTANT(0x7fffffffffffffff)
> +#endif
> +#if !defined ( MINLONGLONG )
> #define MINLONGLONG LL_CONSTANT(~0x7fffffffffffffff)
> #endif
I will apply that change, thanks.
> It also generated this warning, which does not look good:
>
> cl -c /nologo /D__STDC__=0 /D_CRT_SECURE_NO_DEPRECATE
> /D_CRT_NONSTDC_NO_DEPRECATE /Ox /GL /W3 /w44355
> /D_WIN32_WINNT=0x0503 /MT -DEPICS_DLL_NO -I. -I..\\O.Common -I.
...
> ..\\..\\..\\src\\libCom\\osi\\os\\WIN32\\osdMutex.c
> osdMutex.c
> ..\..\..\src\libCom\osi\os\WIN32\osdMutex.c(41) : warning C4005:
> '_WIN32_WINNT' : macro redefinition
> command-line arguments : see previous definition of
> '_WIN32_WINNT'
Janet and I are trying to work out where your command-line flag
/D_WIN32_WINNT=0x0503 is coming from because it's not a standard part of
Base.
Is it from some site-specific configuration you've used? We don't see
it
ourselves on win32-x86 builds.
- Andrew
--
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham
- Replies:
- RE: EPICS Base 3.14.12.2-rc1 available for testing Mark Rivers
- References:
- EPICS Base 3.14.12.2-rc1 available for testing Andrew Johnson
- RE: EPICS Base 3.14.12.2-rc1 available for testing Mark Rivers
- Re: EPICS Base 3.14.12.2-rc1 available for testing Andrew Johnson
- Navigate by Date:
- Prev:
Re: EPICS Base 3.14.12.2-rc1 available for testing Andrew Johnson
- Next:
Re: EPICS Base 3.14.12.2-rc1 available for testing J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: EPICS Base 3.14.12.2-rc1 available for testing Andrew Johnson
- Next:
RE: EPICS Base 3.14.12.2-rc1 available for testing Mark Rivers
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024