• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: source conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: source conversion


  • Subject: Re: source conversion
  • From: "D. Walsh" <email@hidden>
  • Date: Thu, 19 Jan 2006 22:34:23 -0500
  • Mta-interface: amavisd-new-2.3.3 (20050822) at daleenterprise.com


On Jan 19, 2006, at 16:43 , Steve Checkoway wrote:


On Jan 19, 2006, at 4:24 AM, D. Walsh wrote:

You don't have xsco installed, I've got the dev API, header files and libraries under an NDA.

In that case, your best bet is to ask whomever gave you the dev API.

it links against libxsco.so (now libxsco.dylib on my Mac)

Newer versions of the library include xsco_version() which returns a double so doing:
  double some_variable = xsco_version();
works but in the older libraries this function is not available so it looks like they hard code a value however, this check method doesn't seem to work or locate the available function and even using !defined(xsco_version) didn't work so I'm not sure how to resolve this.

If the function is available but the macro is not defined, then define:
#define xsco_version() xsco_version()
If the function is available but not in one of their header files, then add
extern double xsco_version();
as well.


Being an XCode project I'm not sure how to use the autotools to determine if this function exists.

I didn't mean to use the autotools with Xcode to do this. Since you're (presumably) compiling this on your own machine, just check if the symbol exists in the library:
$ nm libxsco.dylib|grep _xsco_version

That said, I think you're probably okay just leaving it alone.

Apparently not, it doesn't find library functions using this method and a lot of the application functionality doesn't work.

I'm not sure I understand why. If it isn't defined somewhere, the macro should be defined to the hard coded value by the preprocessor macros. About the only situation that I could see this not working is if _xsco_version is defined but xsco_version is not and no xsco_version function exists. If that's the case, define:
#define xsco_version() _xsco_version()

Maybe I'm confusing you a little.

In XSCO prior to version 1.000417 the "xsco_version()" function doesn't exists.

This means in the header file you don't have the following line.
int xsco_version();

After discussing it with them, it appears that the above lines of code were to test for the presence of the functions in the header files and adjust if not present.

It is my understanding of the discussion that the original 65C816 compiler accepted this method and worked so I'm not sure how I can use the installed xsco_XXXXX.h files to determine if these and other functions exists.

In the case of the SCSI driver, I've been able to just make some of the functions null but I can't do this with every function and rewrote a lot based on the standard SCSI API.

- Steve

-- Dale

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: source conversion
      • From: Steve Checkoway <email@hidden>
References: 
 >source conversion (From: "D. Walsh" <email@hidden>)
 >Re: source conversion (From: Steve Checkoway <email@hidden>)
 >Re: source conversion (From: "D. Walsh" <email@hidden>)
 >Re: source conversion (From: Steve Checkoway <email@hidden>)

  • Prev by Date: building for panther & intel
  • Next by Date: Future DWARF support [was: Re: C Preprocessor Macro expansion in GDB]
  • Previous by thread: Re: source conversion
  • Next by thread: Re: source conversion
  • Index(es):
    • Date
    • Thread