compile error in atomic.h when compiling c++
Bernd Walter
ticso at cicely7.cicely.de
Tue Sep 9 04:03:05 UTC 2014
System is r271289M with clang.
[114]wandboard# cat test.cc
#include <sys/types.h>
#include <machine/atomic.h>
int
main(int argc, char *argv[])
{
return 0;
}
[115]wandboard# c++ -Wall test.cc
In file included from test.cc:2:
/usr/include/machine/atomic.h:286:8: error: expected identifier
[new] "r" (newval)
^
/usr/include/machine/atomic.h:286:11: error: expected expression
[new] "r" (newval)
^
2 errors generated.
Exit 1
I assume it has problems with "new" used here, which is a special
keyword in C++.
--
B.Walter <bernd at bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
More information about the freebsd-arm
mailing list