Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Marcb on August 23, 2010, 01:24:54 PM

Title: Using an external library with SAS/C
Post by: Marcb 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!) :)
Title: Re: Using an external library with SAS/C
Post by: Piru 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?
Title: Re: Using an external library with SAS/C
Post by: Marcb on August 23, 2010, 02:06:27 PM
:laughing:

Indeed!

I forgot the capitalization!!!  Aaaargh

Thanks Piru!
Title: Re: Using an external library with SAS/C
Post by: jj 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.
Title: Re: Using an external library with SAS/C
Post by: Marcb 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