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: C++ and genSubRecord.h
From: Pierrick Hanlet <[email protected]>
To: [email protected]
Cc: [email protected]
Date: Tue, 11 Nov 2008 10:34:04 -0600
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



Replies:
Re: C++ and genSubRecord.h Eric Norum
Re: C++ and genSubRecord.h Matthieu Bec

Navigate by Date:
Prev: Re: msi1_4 build - compile against base 3.14.10 crashes - `TRUE' undefinded J. Lewis Muir
Next: Re: C++ and genSubRecord.h Eric Norum
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: msi1_4 build - compile against base 3.14.10 crashes - `TRUE' undefinded J. Lewis Muir
Next: Re: C++ and genSubRecord.h Eric Norum
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 ·