• 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: multiple crt1.o link problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple crt1.o link problems


  • Subject: Re: multiple crt1.o link problems
  • From: Ron Duritsch <email@hidden>
  • Date: Thu, 8 May 2008 13:08:25 -0400

Chris,

That was indeed the problem. I removed the crt1.0 file that was explicitly placed in the project, form the Importer, and those particular multiple definition warnings went away. I now have other multiple definition problems but they are with external frameworks that we have built in Xcode, but included in the "Frameworks" section of Groups & Files in the project window. So I'll have to sort that out somehow.

Thanks,  Ron

On May 8, 2008, at 12:29 PM, Chris Espinosa wrote:

On May 8, 2008, at 7:04 AM, Ron Duritsch <email@hidden> wrote:

I am porting a project from CodeWarrior to Xcode 2,5 (for starters). All has gone fairly well up to now, with all source compiling. But I get the following link errors (below) and I am hoping someone has seen something like this before. It seems to want to utilize two different crt1.o object files:

/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _NXArgc
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../crt1.o definition of _NXArgc in section (__DATA,__data)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o definition of _NXArgc in section (__DATA,__data)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _NXArgv
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../crt1.o definition of _NXArgv in section (__DATA,__data)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o definition of _NXArgv in section (__DATA,__data)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol ___progname
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../crt1.o definition of ___progname in section (__DATA,__data)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o definition of ___progname in section (__DATA,__data)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol __dyld_func_lookup
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../crt1.o private external definition of __dyld_func_lookup in section (__TEXT,__text)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o private external definition of __dyld_func_lookup in section (__TEXT,__text)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol __start
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../crt1.o private external definition of __start in section (__TEXT,__text)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o private external definition of __start in section (__TEXT,__text)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol _environ
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../crt1.o definition of _environ in section (__DATA,__data)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o definition of _environ in section (__DATA,__data)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol dyld_stub_binding_helper
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../crt1.o private external definition of dyld_stub_binding_helper in section (__TEXT,__text)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o private external definition of dyld_stub_binding_helper in section (__TEXT,__text)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: multiple definitions of symbol start
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../crt1.o definition of start in section (__TEXT,__text)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o definition of start in section (__TEXT,__text)

Any clues anyone??

It would be easier to tell from the compiler and linker input, rather than just the output, but my guess is that your potrted CodeWarrior project has an explicit reference to crt1.o as was conventional back in the day.  Modern Xcode automatically picks the correct C run time library for you, so you can and should remove the explicit reference from your project.

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: 
 >multiple crt1.o link problems (From: Ron Duritsch <email@hidden>)
 >Re: multiple crt1.o link problems (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Xcode eats 100% CPU and more while typing
  • Next by Date: Re: Xcode 3 losing scm password
  • Previous by thread: Re: multiple crt1.o link problems
  • Next by thread: TemplateInfo.plist MacroExpand Bug
  • Index(es):
    • Date
    • Thread