[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Using the function written in UFUNC.C



GANAPATHIB@INF.COM wrote:
>
>      Hi ,
>
>      I have written a function in UFUNC.C , but when i tried to use the
>      function in my SQR program , it is giving error 'Invalid function'.
>
>      1 ) After writing the c function in UFUNC.C , What to be done to use
>      it     in my SQR program ??
>
>          When i went through manuals it is saying that we have to create
>      SQR       executable of the 'C' functions ? If it is , then how to
>      create ??
>
>      2 ) I have written a SQR program . Can i get a executable out of it ,
>          Which can be run independently(Without SQRW) ??
>
>      Thanx in advance ,
>
>      Ganapathi.
>
>      Email id : Ganapathib@inf.com

The function must be inserted in the userfuncs table in the ufunc.c
program. See how max, split, and printarray are done. If you have done
this correctly, you then compile ufunc.c into an object module
(ufunc.o). After that, the SQR executables must be relinked using the new
ufunc.o. Either replace the ufunc.o that is in the SQR library with the
one you have created, or by change the SQR makefile to link in the
ufunc.o before the SQR library is accessed. Then run the appropriate
command to relink the executables.

JLKellogg