help me ? - VxWorks

This is a discussion on help me ? - VxWorks ; the code: taskSpawn("TaskParent", 100, 0, 20000, writeFunc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); when i build it the complier tell me that: ...\pipetest.cpp:75: sorry, not implemented: `tree_list' not supported by dump_type ...\pipetest.cpp:75: ANSI C++ prohibits conversion ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: help me ?

  1. help me ?

    the code:

    taskSpawn("TaskParent", 100, 0, 20000, writeFunc, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0);

    when i build it the complier tell me that:

    ...\pipetest.cpp:75: sorry, not implemented: `tree_list' not supported
    by dump_type
    ...\pipetest.cpp:75: ANSI C++ prohibits conversion from `()' to `(...)'

    who can you tell me why? how to solution it?

    thank you very much.


  2. Re: help me ?

    wangyegang wrote:

    > the code:
    >
    > taskSpawn("TaskParent", 100, 0, 20000, writeFunc, 0, 0, 0, 0, 0,
    >0, 0, 0, 0, 0);
    >
    >when i build it the complier tell me that:
    >
    >..\pipetest.cpp:75: sorry, not implemented: `tree_list' not supported
    >by dump_type
    >..\pipetest.cpp:75: ANSI C++ prohibits conversion from `()' to `(...)'
    >
    >who can you tell me why? how to solution it?
    >
    >thank you very much.


    I think you need to cast the task entry point as (FUNCPTR)writeFunc.

    --
    ================================================== ======================
    Michael Kesti | "And like, one and one don't make
    | two, one and one make one."
    mrkesti at comcast dot net | - The Who, Bargain

+ Reply to Thread