Compile extproc library
Hello,
I'm on linux 64 bit.
I've managed to setup the test case as described here:
10 Steps to Create and Run a Sample External Procedure Program on Unix (Doc ID 312564.1)
But actually I want to use extproc to determine the modification date of a file.
The problem is, that whenever I have a C function that returns a value, I get a sigseg from the extproc.
This is the sample code:
square_of.c
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int squareof(int x)
{
return 1;
}
cc -fPIC -c square_of.c
ld -shared -o square_of.so square_of.o