DragonFly users List (threaded) for 2006-12
DragonFly BSD
DragonFly users List (threaded) for 2006-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: A c++ puzzle for you gurus

From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Thu, 14 Dec 2006 01:34:04 +0100

walt wrote:
c++ -O2 -I/usr/pkg/include -I/usr/include -Wall -O3  -I/usr/pkg/include
-I/usr/include  -c -o syncres.o syncres.cc
In file included from mtasker.hh:107,
                 from syncres.hh:20,
                 from syncres.cc:20:
mtasker.cc: In member function `void MTasker<EventKey, EventVal>::yield()':
mtasker.cc:196: error: there are no arguments to `swapcontext' that depend
on a template parameter, so a declaration of `swapcontext' must be available

My bonehead compiler question is:  how did we get from 'from syncres.cc' to
'mtasker.cc' with no intermediate steps?

you have to read it as a sentence :) file* included from mtasker.hh, line 107, which was included from syncres.hh, line 20, which was included from syncres.cc, line 20. file* is: mtasker:cc. confuses me also all the time.

I'm really more interested in how a c++ expert would approach this bug
rather than just being given the fix.

the problem here basically is an incomprehensible error message which translates to:

"no declaration for swapcontext()!!1"

from ucontext(3):

    The getcontext(), setcontext(), makecontext(), and swapcontext() func-
    tions are not yet implemented in this version of DragonFly.

there we go :) maybe somebody wants to import this functionality from freebsd?


Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

Attachment: signature.asc
Description: OpenPGP digital signature

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