S
shaanxxx
#include<stdio.h>
#include<pthread.h>
int main()
{
return 0;
}
void callCancelHandlerSubscribe (void *param)
{
printf("++++callCancelHandlerSubscribe+++\n");
}
void myfunc ()
{
pthread_cleanup_push(callCancelHandlerSubscribe, 0);
return ;
}
Am I doing any thing wrong here ? i am not able to compile the above
code .
Here are error and compiler information :
SHQ >> cc test.c -lpthread
"test.c", line 21: syntax error before or at: <EOF>
cc: acomp failed for test.c
SHQ >> CC test.c -lpthread
"test.c", line 21: Error: "}" expected instead of EOF.
1 Error(s) detected.
SHQ >> cc -V
cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15
usage: cc [ options] files. Use 'cc -flags' for details
SHQ >> CC -V
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-19 2003/12/18
#include<pthread.h>
int main()
{
return 0;
}
void callCancelHandlerSubscribe (void *param)
{
printf("++++callCancelHandlerSubscribe+++\n");
}
void myfunc ()
{
pthread_cleanup_push(callCancelHandlerSubscribe, 0);
return ;
}
Am I doing any thing wrong here ? i am not able to compile the above
code .
Here are error and compiler information :
SHQ >> cc test.c -lpthread
"test.c", line 21: syntax error before or at: <EOF>
cc: acomp failed for test.c
SHQ >> CC test.c -lpthread
"test.c", line 21: Error: "}" expected instead of EOF.
1 Error(s) detected.
SHQ >> cc -V
cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15
usage: cc [ options] files. Use 'cc -flags' for details
SHQ >> CC -V
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-19 2003/12/18