I am getting the following error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • parag_paul@hotmail.com

    I am getting the following error

    "vcsdvar__. cc", line 1516: Warning (Anachronism): Assigning int(*)
    (t_cb_data*) to extern "C" int(*)(t_cb_dat a*).
    "vcsdvar__. cc", line 1554: Warning (Anachronism): The operation "int(*)
    (t_cb_data*) == extern "C" int(*)(t_cb_dat a*)" is illegal.


    How do I suppress this warning. Is it wrong, to assign a function
    pointer that has been made extern "C" to a pointer to fcuntion which
    is not

    -Parag
    This is all about myself, and the way I see the world.

  • Ian Collins

    #2
    Re: I am getting the following error

    parag_paul@hotm ail.com wrote:
    "vcsdvar__. cc", line 1516: Warning (Anachronism): Assigning int(*)
    (t_cb_data*) to extern "C" int(*)(t_cb_dat a*).
    "vcsdvar__. cc", line 1554: Warning (Anachronism): The operation "int(*)
    (t_cb_data*) == extern "C" int(*)(t_cb_dat a*)" is illegal.
    >
    >
    How do I suppress this warning.
    Use the correct linkage.
    Is it wrong, to assign a function
    pointer that has been made extern "C" to a pointer to fcuntion which
    is not
    >
    Yes.

    --
    Ian Collins.

    Comment

    • parag_paul@hotmail.com

      #3
      Re: I am getting the following error

      On Jun 11, 9:58 am, Ian Collins <ian-n...@hotmail.co mwrote:
      parag_p...@hotm ail.com wrote:
      "vcsdvar__. cc", line 1516: Warning (Anachronism): Assigning int(*)
      (t_cb_data*) to extern "C" int(*)(t_cb_dat a*).
      "vcsdvar__. cc", line 1554: Warning (Anachronism): The operation "int(*)
      (t_cb_data*) == extern "C" int(*)(t_cb_dat a*)" is illegal.
      >
      How do I suppress this warning.
      >
      Use the correct linkage.
      >
      Is it wrong, to assign a function
      pointer that has been made extern "C" to a pointer to fcuntion which
      is not
      >
      Yes.
      >
      --
      Ian Collins.
      I got it,
      i actually have used Extern "C" defnition in the prototype. Sorry,
      for the simple one.

      Comment

      Working...