Without changing the field names I don't see how C++ is going to work.
The line in question is:
epicsUInt32 not; /* No. in T */
And 'not' is a C++ keyword.
On Nov 11, 2008, at 10:34 AM, 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
--
Eric Norum <[email protected]>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793
- References:
- C++ and genSubRecord.h Pierrick Hanlet
- Navigate by Date:
- Prev:
C++ and genSubRecord.h Pierrick Hanlet
- Next:
Re: C++ and genSubRecord.h Matthieu Bec
- 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:
C++ and genSubRecord.h Pierrick Hanlet
- Next:
Re: C++ and genSubRecord.h Matthieu Bec
- 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
|