• 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
C runtime link error under Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C runtime link error under Leopard


  • Subject: C runtime link error under Leopard
  • From: Edward de Jong <email@hidden>
  • Date: Tue, 18 Dec 2007 14:50:11 -0800

I perhaps foolishly upgraded by OS X to Leopard, and downloaded XCODE 3, and now when i link my program using my makefile, it won't run under OS X 10.4, due to a run time problem.  I am using an old fashioned makefile, and although I set my project profile to use and older SDK (MacOSX10.4u.sdk), when the gcc is called to do the link it complains about the C runtime for 10.5.  How can I get gcc to use the proper run time library from earlier versions?  This whole thing of having gcc automatically select a library may be convenient but it is murky as to how it chooses which C runtime to link with, and in my case is ruining things.

Here is my GCC that does the link and the error message:

gcc OBJN/discus.o OBJN/Console.o OBJN/ConsMenu.o OBJN/ConsStr.o OBJN/ConsLayo.o OBJN/DrawDef.o OBJN/Fast.o OBJN/LangUtil.o OBJN/OP.o OBJN/OPConst.o OBJN/OPDef.o OBJN/OPUtil.o OBJN/PString.o OBJN/ResUtil.o OBJN/SerialN.o OBJN/SysErr.o OBJN/SysFont.o OBJN/SysIONav.o OBJN/SysIODef.o OBJN/SysInfo.o OBJN/SysMem.o OBJN/SysMenu.o OBJN/SysNet.o OBJN/SysPixt.o OBJN/SysPrint.o OBJN/SysRes.o OBJN/SysSound.o OBJN/SysTimer.o OBJN/SysVideo.o OBJN/SysVol.o OBJN/SysWin.o OBJN/TeenAbou.o OBJN/TeenAppl.o OBJN/TeenAsk.o OBJN/TeenBar.o OBJN/TeenConf.o OBJN/TeenCurs.o OBJN/TeenDef.o OBJN/TeenDelt.o OBJN/TeenDisp.o OBJN/TeenErr.o OBJN/TeenFile.o OBJN/TeenFun2.o OBJN/TeenHist.o OBJN/TeenIntI.o OBJN/TeenMenu.o OBJN/TeenPref.o OBJN/TeenStat.o OBJN/TeenVend.o OBJN/EvtClassic.o OBJN/Asm.o OBJN/DrawUtil.o OBJN/MString.o OBJN/Polar.o OBJN/StrFix.o OBJN/SysDraw.o OBJN/SysIO.o OBJN/SysKey.o OBJN/SysPix.o OBJN/SysRgn.o OBJN/SysUnicode.o OBJN/Convert.o OBJN/SysMath.o OBJN/SysMemX.o OBJN/ConsTool.o OBJN/Draw.o OBJN/SysBlt.o OBJN/SysMisc.o OBJN/TeenIntf.o OBJN/TeenFunc.o OBJN/UString.o OBJN/SysDoc.o OBJN/PrefDef.o OBJN/MAsm2.o OBJN/ParsJPEG.o OBJN/ConsPapers.o OBJN/SysCurs.o OBJN/SysDlog.o OBJN/Template.o OBJN/SoundDef.o OBJN/SysTrack.o OBJN/TeenSoun.o OBJN/TextUtil.o OBJN/TeenDraw.o OBJN/TeenPhot.o OBJN/ConsColors.o OBJN/ParsDISC.o OBJN/ParseXML.o OBJN/TeenBlok.o OBJN/TeenBrow.o OBJN/TeenDoc.o OBJN/TeenPack.o OBJN/TeenPrin.o OBJN/TeenSlid.o OBJN/TeenText.o OBJN/TeenBord.o OBJN/TeenCanv.o OBJN/TeenEdit.o OBJN/TeenGrad.o OBJN/TeenStam.o OBJN/TeenStus.o OBJN/TeenSym.o OBJN/TeenAtom.o OBJN/PixObj.o OBJN/TeenRend.o OBJN/SysHelp.o OBJN/SysScrap.o OBJN/Templates.o OBJN/ParsBMP.o OBJN/ParsGIF.o OBJN/ParsPICT.o OBJN/ParsQuik.o OBJN/TeenBrus.o OBJN/TeenSpra.o OBJN/TeenSwat.o OBJN/EvtCommon.o OBJN/SysShell.o OBJN/Asm32.o OBJN/ParsChunk.o OBJN/ParsILBM.o OBJN/TeenTrac.o OBJN/ParsV3.o OBJN/SysEdit.o OBJN/TeenMarq.o OBJN/TeenUndo.o OBJN/LZW.o -o discus.EXEN -arch i386 -I /Users/edward/Modula2 -L/Users/edward/Modula2/lib -lCCarbLib -framework Carbon -framework QuickTime -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk/
ld: library not found for -lcrt1.10.5.o



I I I imagine most people will want to link so as to be compatible with earlier systems, and perhaps I  can use a manual link command, but then how does one know which C runtime to link against?  There are so many to choose from.

edj





 _______________________________________________
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

  • Follow-Ups:
    • Re: C runtime link error under Leopard
      • From: Peter O'Gorman <email@hidden>
  • Prev by Date: Re: Debugging/modifying 10.5 SDK linked project while booted into 10.4?
  • Next by Date: Re: C runtime link error under Leopard
  • Previous by thread: Re: Debugging/modifying 10.5 SDK linked project while booted into 10.4?
  • Next by thread: Re: C runtime link error under Leopard
  • Index(es):
    • Date
    • Thread