| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
perhaps a cleaner way might be to specify the full path to the .a--
when linking. as follows:
% cc sample.c /usr/lib/libpcap.a
% otool -L a.out
a.out:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 62.0.0)
using -l of course, you get the shared library version:
% cc sample.c -lpcap
% otool -L a.out
a.out:
/usr/lib/libpcap.A.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 62.0.0)
| References: | |
| >Re: Building static (From: chas williams <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.