Calling an Oracle Form from a C program in Unix
Date: 29 Aug 2001 02:58:30 -0700
Message-ID: <46703bcc.0108290158.16f00902_at_posting.google.com>
Hi Everybody,
I have a C program to launch an Oracle Forms from a C program without
the use of execvp() or system(). I am using ifzcal() provided by
Oracle to do so. But I cannot find the library where ifzcal() is
defined and so cannot compile the C program to the executable. Below
is the C program I am using.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ifzcal.h"
int main (int argc, char *argv[])
{
int len = 0, i = 0;
int stat;
char *buffer; /* buffer is the string that will be submitted in
IFZCAL */
char formname[150];
buffer = (char *)calloc(2000, sizeof(char));
for (i = 1; i < argc; i++){
strcat(buffer, argv[i]); strcat(buffer, " ");
}
printf("%s", buffer);
len = strlen(buffer);
stat = ifzcal(buffer,len);
}
Problem is how do I link it to the appropriate library? Any help in this regard is welcome.
Arnab Received on Wed Aug 29 2001 - 11:58:30 CEST