Compiling UserFunc.c

On Windows

UserFunc.c is included in the projects found in $UNIDIR/misc/Gsharp. You can edit the UserFun.c here and add your own files or libraries to the project.

For more information see How to relink Gsharp

On UNIX

You must compile UserFunc.c into UserFunc.o and then replace it in $UNIDIR/lib/libgsh64.a:

cd $UNIDIR/misc/Gsharp
agxlink -c UserFunc.c
cp UserFunc.o ../lib
cp libgsh64.a libgsh64orig.a
ar rvl libgsh64.a UserFunc.o

N.B. If you prefer to compile UserFunc.c with cc rather thank agxlink, then you must make sure that is compiled with the argument -DR64 and on 64 bit architecture also with the argument -DP64.

Gsharp must then be linked as described in How to relink Gsharp

On VMS

The following command can be used to compile UserFunc.c

  CC/DECC Userfunc.c

and the following command can be used to replace UserFunc.obj in gsharp.olb

  lib/rep unilib:gsharp.olb Userfunc.obj

Gsharp must then be linked as described in How to relink Gsharp