How to link against IOKit framework or libraries?
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