Help on Pro*C SQL*Forms 3.0 user exit (UNIX)

From: <SCUNNANE_at_ESTEC.BITNET>
Date: Thu, 26 Aug 1993 12:36:22 CET
Message-ID: <93238.123622SCUNNANE_at_ESTEC.BITNET>


 Hello out there,

 I'm a Pro*C beginner and I'm trying to write an SQL*Forms 3.0 user exit  to update the screen field :menu.cwd with the user's current working  directory (which I supply at the moment rather that get the pwd value).

 When I run the make command...

 make -f /usr/oracle/c/demo/proc.mk USERID=SCOTT/TIGER get_cwd.exe

 the following messages are displayed...

/usr/5bin/cc -I. -O -o get_cwd get_cwd.c
/usr/oracle/rdbms/lib/libsql.a
/usr/orcle/rdbms/lib/libocic.a
/usr/oracle/rdbms/lib/osntab.o
/usr/oracle/rdbms/lib/lisqlnet.a
/usr/oracle/rdbms/lib/libora.a

 and then I get the following error message...

 ld: Undefined symbol

    _iappfo

  • Error code 2

 Here is the program source...

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

 #include <stdio.h>

 EXEC SQL BEGIN DECLARE SECTION;
  VARCHAR cwd50Ù;
 EXEC SQL END DECLARE SECTION;  EXEC SQL INCLUDE SQLCA;  main()
 {
  strcpy(cwd.arr, "/USR/JBLOGGS/");
  cwd.len = strlen(cwd.arr);

  EXEC SQL WHENEVER SQLERROR GOTO sqlerror;   EXEC IAF PUT :cwd VALUES (:cwd);

  return(IAPSUCC);

 sqlerror:

  EXEC SQL WHENEVER SQLERROR CONTINUE;
  EXEC SQL ROLLBACK WORK RELEASE;   return(IAPFAIL);
 }

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

 Can anyone tell me what I'm doing wrong ?

 Thanks a lot, Shane. Received on Thu Aug 26 1993 - 13:36:22 CEST

Original text of this message