• 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
Importing class data symbol?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Importing class data symbol?


  • Subject: Importing class data symbol?
  • From: Tomas Zahradnicky <email@hidden>
  • Date: Sat, 17 Dec 2005 17:56:57 +0100

Hello,

I've encountered a problem with Xcode which worked in CodeWarrior. I'd like to import a symbol which is exported by a framework I link against. The problem is that that symbol is a static public member of a class.

I used "#pragma import on" in CodeWarrior and that made symbol U type but with Xcode linkage I see it still S instead of U. I tried to use __declspec(dllimport) but gcc ignores this symbol.

What is the proper syntax to import an external static symbol within a class?

I have succeeded using namespace with an extern memory class for that symbol but what would be the proper way with a class?

Thanks for your thoughts,

  Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
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


  • Prev by Date: Re: /bin/sh: bad interpreter: Text file busy
  • Next by Date: "look up in dictionary" item and xcode
  • Previous by thread: Re: [ot] capturing the screen
  • Next by thread: "look up in dictionary" item and xcode
  • Index(es):
    • Date
    • Thread