Welcome, Guest. Please login or register.

Author Topic: Sas-C Linker (Stub) Issues...  (Read 14748 times)

Description:

0 Members and 2 Guests are viewing this topic.

Offline x303

Re: Sas-C Linker (Stub) Issues...
« on: November 12, 2011, 06:18:51 PM »
You don't need stubs or glue or whatever at all.

You should include these:

#include
#include

struct ReqToolsBase *ReqToolsBase;

and then define these local, not global

  if(ReqToolsBase)
    CloseLibrary((struct Library *)ReqToolsBase);
 

  if((ReqToolsBase = (struct ReqToolsBase *)OpenLibrary (REQTOOLSNAME, REQTOOLSVERSION)) == NULL) CloseAll();

That's all, no linking with anything else.