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  <20082009  2010  2011  2012  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  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: C++ and genSubRecord.h
From: Matthieu Bec <[email protected]>
To: Pierrick Hanlet <[email protected]>
Cc: [email protected], [email protected]
Date: Tue, 11 Nov 2008 13:42:49 -0300

the gensubs header has a 'not' field thats a c++ reserved keyword. rename the field in the header, or give gcc -fno-operator-names


Pierrick Hanlet wrote:
Hi,
I have a problem with genSubRecord.h when compiling my code as
C++ source instead of C.  I've stripped everything out of the code,
except for header files, and empty functions and called the source file
either "test.c" or "test.cc".    In my source directory, I've modified the
Makefile to use the source test.c or test.cc (I've also deleted the other
source file in the directory).

When the Makefile uses test.c, there are no compilation errors.
However, when the Makefile uses test.cc, then I get the following
compilation errors:

../../include -I/usr/local/epics/base/include/os/Linux -I/usr/local/epics/base/include ../test.cc ../../../include/genSubRecord.h:185: error: expected unqualified-id before ‘!’ token
make[3]: *** [test.o] Error 1
make[3]: Leaving directory `/home/hanlet/epics/tgtMon/tgtMonApp/src/O.linux-x86'
make[2]: *** [install.linux-x86] Error 2
make[2]: Leaving directory `/home/hanlet/epics/tgtMon/tgtMonApp/src'
make[1]: *** [src.install] Error 2
make[1]: Leaving directory `/home/hanlet/epics/tgtMon/tgtMonApp'
make: *** [tgtMonApp.install] Error 2


Any ideas on how to proceed?
Thanks,
Pierrick


-----------------------------------------------------------------------------------------
Pierrick Hanlet
Fermilab, P.O. Box 500, M.S. 122
Batavia, IL 60510
[email protected]
(630)840-5555/8871/6039 office/lab/fax http://www-d0.fnal.gov/~hanlet


"Whether you think you can or think you can't, either way, you are correct" -- Henry Ford




--
Matthieu Bec              Gemini Observatory
Tel: +56 51 205785        c/o AURA, Casilla 603
Fax: +56 51 205650        La Serena, Chile

References:
C++ and genSubRecord.h Pierrick Hanlet

Navigate by Date:
Prev: Re: C++ and genSubRecord.h Eric Norum
Next: Fast Cross-IOC Loops? Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: C++ and genSubRecord.h Eric Norum
Next: Fast Cross-IOC Loops? Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·