V
Vu Pham
I think this problem relates to either c or c++ ( but I am not sure which
one ) so I post to both of these news group. I am sorry if I did something
wrong here.
Is there any difference between these two declarations :
1.
void * functionA( char * p, int s, int * e );
and
2.
typedef void * ( *functionA_t)( char * p, int s, int * e );
functionA_t functionA();
I thought they are the same, but I must be wrong somewhere. The function is
compiled and linked into a .so file. For the first declarartion, nm(1)
shows that name in the .so file, but not for the 2nd declaration.
Each of these declaration is embraced by extern "C" { }. The implenetation
file is a .cpp compiled with g++.
Thanks,
Vu
one ) so I post to both of these news group. I am sorry if I did something
wrong here.
Is there any difference between these two declarations :
1.
void * functionA( char * p, int s, int * e );
and
2.
typedef void * ( *functionA_t)( char * p, int s, int * e );
functionA_t functionA();
I thought they are the same, but I must be wrong somewhere. The function is
compiled and linked into a .so file. For the first declarartion, nm(1)
shows that name in the .so file, but not for the 2nd declaration.
Each of these declaration is embraced by extern "C" { }. The implenetation
file is a .cpp compiled with g++.
Thanks,
Vu