• 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
Re: link error, how to include a target that was linked as -bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: link error, how to include a target that was linked as -bundle


  • Subject: Re: link error, how to include a target that was linked as -bundle
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 23 Jun 2005 08:14:35 -0700

On Jun 23, 2005, at 3:14 AM, email@hidden wrote:

Hello,


I am using xlc++ and Xcode 1.5.


I build a project that consists on several bundle.


I did chose -bundle as library style in the targets parameters of

"XLSTATRD1C", "XLSTATCR1C" et "XLSTATBS1C"


The test application is build with a library style -dylib.


The linker does not find two symbols VBDecryptWString(char*),

SysAllocString(wchar_t const*).


These methods are well defined in XLSTATCR1C.


The same code compiles without problem under windows.


- What can I do to make it compile?


- Is there some documentation about the differences of -bundle and -dylib

in this context (xlc++ xcode)


Thanks in advance.


---


Native Build of Target "XLSTATRD1C"


Native Build of Target "XLSTATCR1C"


Native Build of Target "XLSTATBS1C"


Ld /Users/jjaeger/build/XLSTATBS1C.dylib

    cd /Users/jjaeger

    /opt/ibmcmp/vacpp/6.0/bin/gxlc++ -o

/Users/jjaeger/build/XLSTATBS1C.dylib -L/Users/jjaeger/build

-F/Users/jjaeger/build -filelist

/Users/jjaeger/build/XLSTAT1.build/XLSTATBS1C.build/Objects-normal/XLSTATBS1C.LinkFileList

 -arch ppc -bundle

ld: warning multiple definitions of symbol _expm1

/Users/jjaeger/build/XLSTAT1.build/XLSTATBS1C.build/Objects-normal/ppc/XLSTATBS1C.o

 definition of _expm1 in section (__TEXT,__text)

/usr/lib/libm.dylib(tableExpD.o) definition of _expm1

ld: Undefined symbols:

VBDecryptWString(char*)

SysAllocString(wchar_t const*)

/opt/ibmcmp/vacpp/6.0/bin/xlc++ -qsourcetype=c++ -o

/Users/jjaeger/build/XLSTATBS1C.dylib -L/Users/jjaeger/build

-qframeworkdir=/Users/jjaeger/build -filelist

/Users/jjaeger/build/XLSTAT1.build/XLSTATBS1C.build/Objects-normal/XLSTATBS1C.LinkFileList

 -arch ppc -bundle


My guess is that the source code you're compiling is being compiled as C, not C++, so the linker is trying to link "unmangled" names (VBDecryptWString(char *)) with "mangled" ones.  But I don't have much experience with xlc so that's just a guess.

Chris
 _______________________________________________
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

References: 
 >link error, how to include a target that was linked as -bundle (From: email@hidden)

  • Prev by Date: SOLVED -> Link error with kext and 10.3.9 SDK
  • Next by Date: Re: How to handle link dependencies under Xcode vs. MS Visual C++
  • Previous by thread: link error, how to include a target that was linked as -bundle
  • Next by thread: How to handle link dependencies under Xcode vs. MS Visual C++
  • Index(es):
    • Date
    • Thread