DragonFly kernel List (threaded) for 2007-04
DragonFly BSD
DragonFly kernel List (threaded) for 2007-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Problem with /usr/include/sys/thread.h


From: "Vinicius Santos" <vininim@xxxxxxxxx>
Date: Sat, 21 Apr 2007 18:28:19 -0300

On 4/15/07, Hasso Tepper <hasso@estpak.ee> wrote:
Simon 'corecode' Schubert wrote:
> Hasso Tepper wrote:
> > There is string "template" used in two places (line 334 and 408). It
> > causes problems for C++ in which template is reserved keyword.
>
> No problem fixing this, but I'm curious:  what are you doing with
> sys/thread.h and C++?

It's included indirectly. The code includes <sys/user.h>:

In file included from /usr/include/sys/lock.h:53,
                 from /usr/include/sys/proc.h:57,
                 from /usr/include/sys/user.h:73,
                 [snip]
/usr/include/sys/thread.h:334: error: expected `,' or `...' before "template"
/usr/include/sys/thread.h:408: error: expected `,' or `...' before "template"

The code is KDE ksysguard - system monitoring including ps, top etc
functionality, so it needs kinfo_proc.

Tried using extern "C" {} around the C include files?




regards,

--
Hasso Tepper




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]