Calling a C function in a pro*C file
Posted
by Sachin Chourasiya
on Stack Overflow
See other posts from Stack Overflow
or by Sachin Chourasiya
Published on 2010-05-31T10:02:29Z
Indexed on
2010/05/31
10:12 UTC
Read the original article
Hit count: 183
I have these line in my pro*C program. The function initAerage is defined in a C language and I am trying to call this function in a .pcc (pro C++) file.
I am getting an error Error: initAverage(int i);was declared before with a different language
extern "C"
{
int initAverage(int i);
}
Please help
© Stack Overflow or respective owner