• 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
How to link against IOKit framework or libraries?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to link against IOKit framework or libraries?


  • Subject: How to link against IOKit framework or libraries?
  • From: Xochitl Lunde <email@hidden>
  • Date: Thu, 7 May 2009 12:08:53 -0500


This might not be the right mailing list, so please redirect me if I am mistaken.

I am porting a Linux/Windows application to MacOS.  The application is still under development, so I really only have unit tests based on CppUnit library as executable targets.  I am doing this using an Intel iMac with Leopard.  Right now I use the automake tools (aclocal;autoconf;automake --add-missing;./configure;make) to build my application.

Under Linux, my c++ library uses ioctl() to find the MAC address of an interface given the IP address.  I found an example online of getting MAC addresses on MacOS, but this example uses the IOKit.  I have added the IOKit into my code for MacOS, and my dylib compiles.  I cannot link my unit test because I get an error about missing symbols expected in "flat-namespace".  I am thinking I just need to figure out how to link against the IOKit framework or find another way to get the MAC address.  Could this be as easy as finding the library name and path and adding them in LDFLAGS and LDADD respectively?

Any advice?  I'm sorry, I am not using XCode yet, but I will probably have to make XCode projects sometime.  Right now I am just trying to figure out which parts of the code base cannot be reused on MacOS, and I am not doing any major debugging.

Thanks,
Xochitl
 _______________________________________________
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: How to link against IOKit framework or libraries?
      • From: Jan Brittenson <email@hidden>
    • Re: How to link against IOKit framework or libraries?
      • From: Rick Altherr <email@hidden>
  • Prev by Date: Re: Newbie needs help interpreting Xcode compiler errors and warnings
  • Next by Date: Re: How to link against IOKit framework or libraries?
  • Previous by thread: Build problem XCode 2.5 on Intel and OS X 10.5.6
  • Next by thread: Re: How to link against IOKit framework or libraries?
  • Index(es):
    • Date
    • Thread