Re: Xcode not linking static library
Re: Xcode not linking static library
- Subject: Re: Xcode not linking static library
- From: Luc Vandal <email@hidden>
- Date: Thu, 25 Oct 2007 11:40:16 -0400
On 25-Oct-07, at 11:28 AM, Fritz Anderson wrote:
I see in this listing that there are two linkages, one for 10.2 on
PPC and one for Intel. They seem to be for the same product. Both
report _LMSerialNumberString as undefined.
I had hoped you would provide the partial transcript for the case
in which the link _didn't_ work, and for the case in which it
_did_. Then we could compare.
Here you go :
Ld "/Users/lucvandal/Edovia/Clients/HW/VRSMac PPC-INTEL/lpn/source/
VRMacOSX/build/VRMacOSX_Universal.build/Deployment/Victor
Reader.build/Objects-normal/ppc/Victor Reader" normal ppc
cd "/Users/lucvandal/Edovia/Clients/HW/VRSMac PPC-INTEL/lpn/
source/VRMacOSX"
setenv MACOSX_DEPLOYMENT_TARGET 10.2
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.2.8.sdk
/usr/bin/g++-3.3 -o /Users/lucvandal/Edovia/Clients/HW/VRSMac\
PPC-INTEL/lpn/source/VRMacOSX/build/VRMacOSX_Universal.build/
Deployment/Victor\ Reader.build/Objects-normal/ppc/Victor\ Reader -L/
Applications/HW/VRSoft -L../VRDLL/MacOSX/build -L/Users/lucvandal/
Edovia/Clients/HW/VRSMac\ PPC-INTEL/lpn/source/VRMacOSX/
LicenseManager/build -L/Users/lucvandal/Edovia/Clients/HW/VRSMac\ PPC-
INTEL/lpn/source/VRMacOSX/../playback/scale -L/Developer/SDKs/
MacOSX10.2.8.sdk/usr/lib/gcc/darwin/3.3 -F/Applications/HW/VRSoft -
filelist /Users/lucvandal/Edovia/Clients/HW/VRSMac\ PPC-INTEL/lpn/
source/VRMacOSX/build/VRMacOSX_Universal.build/Deployment/Victor\
Reader.build/Objects-normal/ppc/Victor\ Reader.LinkFileList -
framework Cocoa -framework CoreAudio -framework AudioToolbox -
framework AppKit -framework Foundation -framework IOKit -framework
ExceptionHandling -framework Carbon -lVRMacDLL -lLicenseManager -
lrtstst -arch ppc -prebind -Wl,-Y,1455 -mmacosx-version-min=10.2 -Wl,-
dead_strip -Wl,-syslibroot,/Developer/SDKs/MacOSX10.2.8.sdk
Ld "/Users/lucvandal/Edovia/Clients/HW/VRSMac PPC-INTEL/lpn/source/
VRMacOSX/build/VRMacOSX_Universal.build/Deployment/Victor
Reader.build/Objects-normal/i386/Victor Reader" normal i386
cd "/Users/lucvandal/Edovia/Clients/HW/VRSMac PPC-INTEL/lpn/
source/VRMacOSX"
/usr/bin/g++-4.0 -o /Users/lucvandal/Edovia/Clients/HW/VRSMac\
PPC-INTEL/lpn/source/VRMacOSX/build/VRMacOSX_Universal.build/
Deployment/Victor\ Reader.build/Objects-normal/i386/Victor\ Reader -L/
Applications/HW/VRSoft -L../VRDLL/MacOSX/build -L/Users/lucvandal/
Edovia/Clients/HW/VRSMac\ PPC-INTEL/lpn/source/VRMacOSX/
LicenseManager/build -L/Users/lucvandal/Edovia/Clients/HW/VRSMac\ PPC-
INTEL/lpn/source/VRMacOSX/../playback/scale -F/Applications/HW/VRSoft
-filelist /Users/lucvandal/Edovia/Clients/HW/VRSMac\ PPC-INTEL/lpn/
source/VRMacOSX/build/VRMacOSX_Universal.build/Deployment/Victor\
Reader.build/Objects-normal/i386/Victor\ Reader.LinkFileList -
framework Cocoa -framework CoreAudio -framework AudioToolbox -
framework AppKit -framework Foundation -framework IOKit -framework
ExceptionHandling -framework Carbon -lVRMacDLL -lLicenseManager -
lrtstst -arch i386 -prebind -Wl,-Y,1455 -mmacosx-version-min=10.4 -
Wl,-dead_strip -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: warning -prebind ignored because
MACOSX_DEPLOYMENT_TARGET environment variable greater or equal to 10.4
(Is LMSerialNumberString even used in the product that did link?)
Yes it is :
#import <Foundation/Foundation.h>
#include "../LicenseManager/manager.h"
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
LMSerialNumberString();
[pool release];
return 0;
}
— F
Thanks!
On 25 Oct 2007, at 10:15 AM, Luc Vandal wrote:
Checking Dependencies
Ld "/Users/lucvandal/Edovia/Clients/HW/VRSMac PPC-INTEL/lpn/source/
VRMacOSX/randomid/build/randomid.build/Release/randomid.build/
Objects-normal/ppc/randomid" normal ppc
cd "/Users/lucvandal/Edovia/Clients/HW/VRSMac PPC-INTEL/lpn/
source/VRMacOSX/randomid"
setenv MACOSX_DEPLOYMENT_TARGET 10.2
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.2.8.sdk
/usr/bin/gcc-3.3 -o /Users/lucvandal/Edovia/Clients/HW/VRSMac\
PPC-INTEL/lpn/source/VRMacOSX/randomid/build/randomid.build/
Release/randomid.build/Objects-normal/ppc/randomid -L/Users/
lucvandal/Edovia/Clients/HW/VRSMac\ PPC-INTEL/lpn/source/VRMacOSX/
randomid/build/Release -L../LicenseManager/build -L/Users/
lucvandal/Edovia/Clients/HW/VRSMac\ PPC-INTEL/lpn/source/VRMacOSX/
randomid/../LicenseManager/build -L/Developer/SDKs/
MacOSX10.2.8.sdk/usr/lib/gcc/darwin/3.3 -F/Users/lucvandal/Edovia/
Clients/HW/VRSMac\ PPC-INTEL/lpn/source/VRMacOSX/randomid/build/
Release -filelist /Users/lucvandal/Edovia/Clients/HW/VRSMac\ PPC-
INTEL/lpn/source/VRMacOSX/randomid/build/randomid.build/Release/
randomid.build/Objects-normal/ppc/randomid.LinkFileList -framework
Foundation -lLicenseManager -arch ppc -Wl,-Y,1455 -mmacosx-version-
min=10.2 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.2.8.sdk
ld: Undefined symbols:
_LMSerialNumberString
/Users/lucvandal/Edovia/Clients/HW/VRSMac PPC-INTEL/lpn/source/
VRMacOSX/randomid/build/randomid.build/Release/randomid.build/
Objects-normal/ppc/randomid.o reference to undefined
_LMSerialNumberString
Ld "/Users/lucvandal/Edovia/Clients/HW/VRSMac PPC-INTEL/lpn/source/
VRMacOSX/randomid/build/randomid.build/Release/randomid.build/
Objects-normal/i386/randomid" normal i386
cd "/Users/lucvandal/Edovia/Clients/HW/VRSMac PPC-INTEL/lpn/
source/VRMacOSX/randomid"
/usr/bin/gcc-4.0 -o /Users/lucvandal/Edovia/Clients/HW/VRSMac\
PPC-INTEL/lpn/source/VRMacOSX/randomid/build/randomid.build/
Release/randomid.build/Objects-normal/i386/randomid -L/Users/
lucvandal/Edovia/Clients/HW/VRSMac\ PPC-INTEL/lpn/source/VRMacOSX/
randomid/build/Release -L../LicenseManager/build -L/Users/
lucvandal/Edovia/Clients/HW/VRSMac\ PPC-INTEL/lpn/source/VRMacOSX/
randomid/../LicenseManager/build -F/Users/lucvandal/Edovia/Clients/
HW/VRSMac\ PPC-INTEL/lpn/source/VRMacOSX/randomid/build/Release -
filelist /Users/lucvandal/Edovia/Clients/HW/VRSMac\ PPC-INTEL/lpn/
source/VRMacOSX/randomid/build/randomid.build/Release/
randomid.build/Objects-normal/i386/randomid.LinkFileList -
framework Foundation -lLicenseManager -arch i386 -Wl,-Y,1455 -
mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: Undefined symbols:
_LMSerialNumberString
/Users/lucvandal/Edovia/Clients/HW/VRSMac PPC-INTEL/lpn/source/
VRMacOSX/randomid/build/randomid.build/Release/randomid.build/
Objects-normal/i386/randomid.o reference to undefined
_LMSerialNumberString
collect2: ld returned 1 exit status
_______________________________________________
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