> I''ve tried including some of our C headers to trace certain
structures
> within the system. The D (pre?)compiler seems to be having trouble with
C++
> style comments and fails with a syntax error.
>
> Is there a way to set the compatiblity flags to allow inclusion of C source
> with C++ style comments?
There is no built-in option to support this. If you need to do it, create
a simple cpp wrapper script like this to call cpp -B (strip C++ comments):
#!/bin/sh
exec /usr/ccs/lib/cpp -B "$@"
and chmod +x that. I saved mine to /home/mws/c++cpp. Then run dtrace like so:
$ dtrace -C -xcpppath=/home/mws/c++pp -s script.d
-Mike
--
Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/