Path: utzoo!attcan!uunet!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!cc.utah.edu!cc.usu.edu!slmt9 From: slmt9@cc.usu.edu Newsgroups: comp.sys.amiga.tech Subject: Help with useing SAS C5.10 to make Libraries Message-ID: <1991Jan9.104606.46575@cc.usu.edu> Date: 9 Jan 91 16:46:06 GMT Lines: 33 Hello to all the netters out there. As is usual when I post it is to ask a question. The question this time is to find out how to get SAS C V5.10 to compile a library. The manual says that it can be done but then gives almost no information on how to do it. I have tried several time but get hung up on a few area's so it is time to try to get some help. First of what does the declaration of the function itself have to look like. I read in the source File that it has to be __saveds so my code looks like this ULONG __saveds Add(a,b) ULONG a,b; { return (a+b); } If there are any corrections that need to be made here please let me know. Question number two. What does the .FD file need to look like. When I compile I get asked what the name of the library is? When I try to type something simple like MyLibrary then it tells me "error -- 'MyLibrary' is not a defined symbol" so where deos it get the name and other info from. Does this stuff go in the .FD file. Is there a different way to enter it? Any and all help would greatly be appriciated. Thanks, Joshua SLMT9@cc.usu.edu