EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Building EPICS (3-14-12-1) on Windows 7
From: "Jeff Hill" <[email protected]>
To: "'Williams Jr., Ernest L.'" <[email protected]>, "'Jüri Tagger'" <[email protected]>
Cc: [email protected]
Date: Thu, 18 Aug 2011 08:58:30 -0600
> error C2440:
> 'initializing' : cannot convert from 'const void *' to 'const char *'
>         Conversion from 'void*' to pointer to non-'void' requires an
> explicit cast

Interesting. My version of that old code has the same "const void *" to
"const char *" assign w/o a cast, but visual studio pro 2010 doesn?t
generate even a warning (and certainly not an error).

Jeff
______________________________________________________
Jeffrey O. Hill           Email        [email protected]
LANL MS H820              Voice        505 665 1831
Los Alamos NM 87545 USA   FAX          505 665 5107

Message content: TSPA

With sufficient thrust, pigs fly just fine. However, this is
not necessarily a good idea. It is hard to be sure where they
are going to land, and it could be dangerous sitting under them
as they fly overhead. -- RFC 1925


> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Williams Jr., Ernest L.
> Sent: Thursday, August 18, 2011 8:35 AM
> To: Jüri Tagger
> Cc: [email protected]
> Subject: RE: Building EPICS (3-14-12-1) on Windows 7
> 
> Hi Juri,
> 
> When I try with the unpatched version of EPICS BASE base-3-14-12-1  I get:
> 
> rc -l 0x409 -I. -I../O.Common -I. -I../../../src/libCom/osi/os/WIN32 -
> I../../../
> src/libCom/osi/os/default -I.. -I../../../src/libCom/bucketLib -
> I../../../src/li
> bCom/ring -I../../../src/libCom/calc -I../../../src/libCom/cvtFast -
> I../../../sr
> c/libCom/cppStd -I../../../src/libCom/cxxTemplates -
> I../../../src/libCom/dbmf -I
> ../../../src/libCom/ellLib -I../../../src/libCom/env -
> I../../../src/libCom/error
>  -I../../../src/libCom/fdmgr -I../../../src/libCom/freeList -
> I../../../src/libCo
> m/gpHash -I../../../src/libCom/iocsh -I../../../src/libCom/logClient -
> I../../../
> src/libCom/macLib -I../../../src/libCom/misc -I../../../src/libCom/osi -
> I../../.
> ./src/libCom/taskwd -I../../../src/libCom/timer -
> I../../../src/libCom/tsDefs -I.
> ./../../include/os/WIN32 -I../../../include        -fo Com.res ../Com.rc
> Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
> Copyright (C) Microsoft Corporation.  All rights reserved.
> cl /nologo /EHsc /GR -c               /nologo /D__STDC__=0
> /D_CRT_SECURE_NO_DEPR
> ECATE /D_CRT_NONSTDC_NO_DEPRECATE   /Ox /GL   /W3 /w44355       /MD  /TP
> -I. -
> I..\\O.Common -I. -I..\\..\\..\\src\\libCom\\osi\\os\\WIN32 -
> I..\\..\\..\\src\\l
> ibCom\\osi\\os\\default -I.. -I..\\..\\..\\src\\libCom\\bucketLib -
> I..\\..\\..\\
> src\\libCom\\ring -I..\\..\\..\\src\\libCom\\calc -
> I..\\..\\..\\src\\libCom\\cvt
> Fast -I..\\..\\..\\src\\libCom\\cppStd -
> I..\\..\\..\\src\\libCom\\cxxTemplates -
> I..\\..\\..\\src\\libCom\\dbmf -I..\\..\\..\\src\\libCom\\ellLib -
> I..\\..\\..\\s
> rc\\libCom\\env -I..\\..\\..\\src\\libCom\\error -
> I..\\..\\..\\src\\libCom\\fdmg
> r -I..\\..\\..\\src\\libCom\\freeList -I..\\..\\..\\src\\libCom\\gpHash -
> I..\\..
> \\..\\src\\libCom\\iocsh<file://..//src//libCom//iocsh> -
> I..\\..\\..\\src\\libCom\\logClient -I..\\..\\..\\src\
> \libCom\\macLib -I..\\..\\..\\src\\libCom\\misc -
> I..\\..\\..\\src\\libCom\\osi -
> I..\\..\\..\\src\\libCom\\taskwd -I..\\..\\..\\src\\libCom\\timer -
> I..\\..\\..\\
> src\\libCom\\tsDefs -I..\\..\\..\\include\\os\\WIN32 -I..\\..\\..\\include
>   ..\\..\\..\\src\\libCom\\bucketLib\\bucketLib.c
> bucketLib.c
> ..\..\..\src\libCom\bucketLib\bucketLib.c(125) : error C2440:
> 'initializing' : c
> annot convert from 'const void *' to 'const char *'
>         Conversion from 'void*' to pointer to non-'void' requires an
> explicit ca
> st
> ..\..\..\src\libCom\bucketLib\bucketLib.c(147) : error C2440:
> 'initializing' : c
> annot convert from 'const void *' to 'const unsigned int *'
>         Conversion from 'void*' to pointer to non-'void' requires an
> explicit ca
> st
> ..\..\..\src\libCom\bucketLib\bucketLib.c(197) : error C2440:
> 'initializing' : c
> annot convert from 'const void *' to 'const char *'
>         Conversion from 'void*' to pointer to non-'void' requires an
> explicit ca
> st
> make[3]: *** [bucketLib.obj] Error 2
> make[3]: Leaving directory `C:/epics/base/base-R3-14-12-
> 1/src/libCom/O.win32-x86
> '
> make[2]: *** [install.win32-x86] Error 2
> make[2]: Leaving directory `C:/epics/base/base-R3-14-12-1/src/libCom'
> make[1]: *** [libCom.install] Error 2
> make[1]: Leaving directory `C:/epics/base/base-R3-14-12-1/src'
> make: *** [src.install] Error 2
> C:\epics\base\base-R3-14-12-1>
> 
> 
> Regards,
> Ernest
> 
> 
> ________________________________
> From: Jüri Tagger [[email protected]]
> Sent: Thursday, August 18, 2011 12:41 AM
> To: Williams Jr., Ernest L.
> Subject: RE: Building EPICS (3-14-12-1) on Windows 7
> 
> 
> Good morning,
> 
> 
> 
> I built 3.14.12.1 on Windows 7 with Visual Studio 2010 straightforward.
> Patch,  http://www.aps.anl.gov/epics/tech-talk/2010/msg00595.php , is not
> necessary. I did it with make-3.82-3-mingw32 and ActivePerl-5.12.2.1203-
> MSWin32-x86
> 
> 
> 
> It should work! (Provided paths and environment variables are right.) The
> only thing I had to do was to run the bat file:
> 
> 
> 
> "C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat"
> 
> 
> 
> (use quotation marks for entering this command line) On success it prints
> out:
> 
> 
> 
> Setting environment for using Microsoft Visual Studio 2010 x86 tools.
> 
> 
> 
> set  EPICS_HOST_ARCH=win32-x86
> 
> C:\MinGW\bin\mingw32-make (while standing in the EPICS base directory).
> 
> 
> 
> 
> 
> Cheers,
> 
> 
> 
> J. Tagger
> 
> MAX - lab



References:
Building EPICS (3-14-12-1) on Windows 7 Williams Jr., Ernest L.
RE: Building EPICS (3-14-12-1) on Windows 7 Williams Jr., Ernest L.

Navigate by Date:
Prev: RE: Building EPICS (3-14-12-1) on Windows 7 Jeff Hill
Next: Re: Building EPICS (3-14-12-1) on Windows 7 Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Building EPICS (3-14-12-1) on Windows 7 Williams Jr., Ernest L.
Next: RE: Building EPICS (3-14-12-1) on Windows 7 Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·