468,315 Members | 1,388 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

I am getting the following error

"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 27 '08 #1
2 1166
pa********@hotmail.com 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.
Jun 27 '08 #2
On Jun 11, 9:58*am, Ian Collins <ian-n...@hotmail.comwrote:
parag_p...@hotmail.com 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 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by MSK | last post: by
6 posts views Thread by David Lozzi | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.