Can I use .o files of compiled c files and use that to compile SV files for DPI

In reply to dave_59:

Thanks Dave, Now it works…

//C_file.c
int import_task(int *t)
{
printf(“C : Before calling export\n”);
if(export_task(t)) {
svAckDisabledState();
printf(“C : After calling export Return 1\n”);
return 1;
}
printf(" C: After calling export Return 0\n");
return 0;
}

Is that mandatory to call SV task from imported C function only?