.ad 8
.bm 8
.fm 4
.bt $Copyright (c) 1992-2004 SAP AG-2002$$Page %$
.tm 12
.hm 6
.hs 3
.tt 1 $SQL$Project Distributed Database System$VPS31C$
.tt 2 $$$
.tt 3 $$Linking C-Precompiler Programs$$2000-08-09$
************************************************************
.nf

.nf


    ========== licence begin  GPL
    Copyright (c) 1992-2004 SAP AG

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    ========== licence end

.fo


.fo
Module  :
=========
.sp
Purpose :
.CM *-END-* purpose -------------------------------------
Define  :
.CM *-END-* define --------------------------------------
Use     :
.CM *-END-* use -----------------------------------------
Synonym :
.CM *-END-* synonym -------------------------------------
.sp;.cp 3
Author  :
.sp
.cp 3
Created : 1994-11-01
.sp
.cp 3
Version : 1994-11-01
.sp
.cp 3
Release :      Date : 2000-08-09
Specification:
.CM *-END-* specification -------------------------------
.sp 2
***********************************************************
.sp
.cp 10
.fo
.oc _/1
Description:
.CM *-END-* description ---------------------------------
.sp 2
***********************************************************
.sp
.cp 10
.nf
.oc _/1
Structure:
.CM *-END-* structure -----------------------------------
.sp 2
**********************************************************
.sp
.cp 10
.nf
.sp
.CM -lll-
Code    :
/*PRETTY*/
#include <stdio.h>
extern void exit (int);

#ifdef WIN32
#define PUTENV _putenv
#else
#define PUTENV putenv
#endif
int main (int argc, char **argv)

/*      Driver program for linkig C precompiler programs
*/

{
#if defined (PS_OCI7X)
  const char *caller = "ocilnk";
#else
  const char *caller = "cpclnk";
#endif

  char **arg;
  int stat;

#ifdef PS_OCI7X
  PUTENV("OCI=YES");
#endif

  argv = p11opt (caller, argc, argv);  /* analyze command line options */
	for (arg = argv; *arg != 0; arg++)
		printf ("%s ", *arg);
	printf ("\n");

/* call linker*/
#ifdef  WIN32
  stat = p01exec (NULL, argv, 0, 0, 0);
#else
  stat = p01exec (argv[0], argv, 0, 0, 0);
#endif
  exit (stat);
  return (0);
}

.CM *-END-* code ----------------------------------------
.SP 2
***********************************************************
