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: EPICS on OS X Lion -- C++ problem
From: Eric Norum <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Mon, 25 Jul 2011 12:34:35 -0700
I tried with clang++ for that file -- and got a completely different set of problems:

In file included from ../udpiiu.cpp:38:
../udpiiu.h:152:5: error: 'mutable' cannot be applied to references
    mutable epicsMutex & cbMutex;
    ^
../udpiiu.h:153:5: error: 'mutable' cannot be applied to references
    mutable epicsMutex & cacMutex;
    ^
In file included from ../udpiiu.cpp:41:
../cac.h:246:13: error: C++ requires a type specifier for all declarations
            freeListVirtualCircuit;
            ^~~~~~~~~~~~~~~~~~~~~~
../cac.h:258:13: error: C++ requires a type specifier for all declarations
            channelFreeList;
            ^~~~~~~~~~~~~~~
../cac.h:269:5: error: 'mutable' cannot be applied to references
    mutable epicsMutex & mutex; 
    ^
../cac.h:270:5: error: 'mutable' cannot be applied to references
    mutable epicsMutex & cbMutex; 
    ^
../udpiiu.cpp:1393:1: error: expected '{' or ','

^

On Jul 25, 2011, at 10:54 AM, Eric Norum wrote:

> Downloaded and installed OS X Lion and the latest version of Xcode on my laptop machine.  Attempting to build EPICS results in:
> /usr/bin/c++ -c              -DUNIX  -Ddarwin     -O3 -g   -Wall      -arch i386    -fno-common -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Darwin -I../../../include       -I/opt/local/include -I/sw/include  ../udpiiu.cpp 
> ../udpiiu.cpp:1391: error: generic thunk code fails for method 'virtual int udpiiu::printFormated(epicsGuard<epicsMutex>&, const char*, ...)' which uses '...'
> 
> Suggestions from C++ experts?
> Maybe I should be trying to build with clang instead of gcc?
> -- 
> Eric Norum
> [email protected]
> 
> 
> 
> 

-- 
Eric Norum
[email protected]






Replies:
RE: EPICS on OS X Lion -- C++ problem Jeff Hill
References:
EPICS on OS X Lion -- C++ problem Eric Norum

Navigate by Date:
Prev: EPICS on OS X Lion -- C++ problem Eric Norum
Next: Re: EPICS on OS X Lion -- C++ problem Eric Norum
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: EPICS on OS X Lion -- C++ problem Eric Norum
Next: Re: EPICS on OS X Lion -- C++ problem Eric Norum
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 ·