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