I am getting the following error

P

parag_paul

"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/
 
I

Ian Collins

"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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top