Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline MarcbTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 407
    • Show only replies by Marcb
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 Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Using an external library with SAS/C
« Reply #1 on: August 23, 2010, 01:32:29 PM »
Quote from: Marcb;575819
I declare struct Destrackerbase *Destrackerbase, open destracker.library then go on to use some of the library functions
struct Library *DesTrackerBase; surely?
« Last Edit: August 23, 2010, 01:37:22 PM by Piru »
 

Offline MarcbTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 407
    • Show only replies by Marcb
Re: Using an external library with SAS/C
« Reply #2 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 jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4052
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show only replies by jj
Re: Using an external library with SAS/C
« Reply #3 on: August 23, 2010, 02:08:18 PM »
languages where lVDouble and lvdouBle are not the same variable drive me nuts.
 
So does linux for that matter where you have to get it ccorrect on Directory names.
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline MarcbTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 407
    • Show only replies by Marcb
Re: Using an external library with SAS/C
« Reply #4 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."