I am getting the following error

Discussion in 'C++' started by parag_paul@hotmail.com, Jun 11, 2008.

  1. Guest

    "vcsdvar__.cc", line 1516: Warning (Anachronism): Assigning int(*)
    (t_cb_data*) to extern "C" int(*)(t_cb_data*).
    "vcsdvar__.cc", line 1554: Warning (Anachronism): The operation "int(*)
    (t_cb_data*) == extern "C" int(*)(t_cb_data*)" 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
    http://concentratedlemonjuice.blogspot.com/
     
    , Jun 11, 2008
    #1
    1. Advertising

  2. Ian Collins Guest

    wrote:
    > "vcsdvar__.cc", line 1516: Warning (Anachronism): Assigning int(*)
    > (t_cb_data*) to extern "C" int(*)(t_cb_data*).
    > "vcsdvar__.cc", line 1554: Warning (Anachronism): The operation "int(*)
    > (t_cb_data*) == extern "C" int(*)(t_cb_data*)" 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.
     
    Ian Collins, Jun 11, 2008
    #2
    1. Advertising

  3. Guest

    On Jun 11, 9:58 am, Ian Collins <> wrote:
    > wrote:
    > > "vcsdvar__.cc", line 1516: Warning (Anachronism): Assigning int(*)
    > > (t_cb_data*) to extern "C" int(*)(t_cb_data*).
    > > "vcsdvar__.cc", line 1554: Warning (Anachronism): The operation "int(*)
    > > (t_cb_data*) == extern "C" int(*)(t_cb_data*)" 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.
     
    , Jun 11, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Bonds
    Replies:
    2
    Views:
    2,750
    Amaryllis
    Aug 3, 2004
  2. Ivan
    Replies:
    20
    Views:
    829
    Tom Leylan
    Mar 23, 2006
  3. Markus Pitha
    Replies:
    2
    Views:
    281
    Markus Pitha
    Feb 20, 2006
  4. friend.05
    Replies:
    6
    Views:
    286
    Richard Heathfield
    Sep 30, 2006
  5. HP
    Replies:
    0
    Views:
    296
Loading...

Share This Page