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  2011  2012  2013  2014  2015  2016  <2017 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
<== Date ==> <== Thread ==>

Subject: Problem compiling StreamDevice on Visual Studio 2015
From: Mark Rivers <rivers@cars.uchicago.edu>
To: "'Dirk Zimoch'" <dirk.zimoch@psi.ch>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 19 Jan 2017 01:09:24 +0000

Hi Dirk and all,

 

The following line compiles OK on Visual Studio 2010, but fails on Visual Studio 2015:

 

    result.print("%"P"d,%"P"d,%"P"d:\033[37m", offs, len, cap);

 

 

This is the error:

 

cl -EHsc -GR                -nologo -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE   -Ox -GL -Oy-   -W3 -w44355 -w44344        -MT  -TP  -I. -I../O.Common -I.

-I. -I.. -I../../../include/compiler/msvc -I../../../include/os/WIN32 -I../../../include      -IJ:/epics/support/asyn-4-31/include   -IJ:/epics/support/calc-3-6-1/include  

-IJ:/epics/support/sscan-2-10-2/include -IH:/epics/base-3.15.5/include/compiler/msvc -IH:/epics/base-3.15.5/include/os/WIN32 -IH:/epics/base-3.15.5/include        -c ../StreamBuffer.cc

StreamBuffer.cc

../StreamBuffer.cc(317): error C3688: invalid literal suffix 'P'; literal operator or literal operator template 'operator ""P' not found

H:/epics/base-3.15.5/configure/RULES_BUILD:233: recipe for target 'StreamBuffer.obj' failed

make[1]: *** [StreamBuffer.obj] Error 2

make[1]: Leaving directory 'J:/epics/support/stream/StreamDevice/src/O.windows-x64-static-vs2015'

H:/epics/base-3.15.5/configure/RULES_ARCHS:58: recipe for target 'install.windows-x64-static-vs2015' failed

make: *** [install.windows-x64-static-vs2015] Error 2

 

Can someone explain what the P characters in that format string do, and how to get this to compile on Visual Studio 2015?

 

Thanks,

Mark

 


Replies:
RE: Problem compiling StreamDevice on Visual Studio 2015 Mark Rivers

Navigate by Date:
Prev: Problem NFS mounting Centos 7 file systems from vxWorks 5.5 Mark Rivers
Next: RE: Problem compiling StreamDevice on Visual Studio 2015 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
Navigate by Thread:
Prev: Re: Problem NFS mounting Centos 7 file systems from vxWorks 5.5 Jeong Han Lee
Next: RE: Problem compiling StreamDevice on Visual Studio 2015 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
ANJ, 14 Feb 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·