Welcome, Guest. Please login or register.

Author Topic: Using an external library with SAS/C  (Read 2459 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MarcbTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 407
    • Show all replies
Using an external library with SAS/C
« on: August 23, 2010, 01:24:54 PM »
Hi,

I guess this is not an SAS/C specific question but more of a general question about using external libraries:

In a nutshell I'm trying to use Destracker.library in a small program I'm writing With C..

I've made sure to include the proto/.h file which in turn includes pragma/.h file etc.
I declare struct Destrackerbase *Destrackerbase, open destracker.library then go on to use some of the library functions.

When I build, all is fine until the link stage where it asks me to define a symbol for _Destracker default ___stub...

If i close the linker without inputting anything, my program does run and the library is opened succesfully and the library functions work just fine!
IF I hit enter, an executable isn't produced..


What am I missing when trying to use the library?

(have pity, I'm old and forgetful!) :)
"...but some animals are more equal than others."
 

Offline MarcbTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 407
    • Show all replies
Re: Using an external library with SAS/C
« Reply #1 on: August 23, 2010, 02:06:27 PM »
:laughing:

Indeed!

I forgot the capitalization!!!  Aaaargh

Thanks Piru!
"...but some animals are more equal than others."
 

Offline MarcbTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 407
    • Show all replies
Re: Using an external library with SAS/C
« Reply #2 on: September 04, 2010, 04:03:06 PM »
Hmmm...

With Piru's help I've got the library functions working perfectly, however the base library has a flags field that I should be able to check for status and I'm having difficulties...

The library has a function to tell it of a signalbit to use to notify you when one of the flags bits is set..

I've used exec to obtain a free signalbit, passed it to the destracker library function and then I do a Wait(signalbit) and wait... Except nothing happens... Or I'm not checking the bits correctly...

Has anyone used destracker library and this function?

If you have, can you tell me how to do it ?

Thanks,

Marc
"...but some animals are more equal than others."