The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

2.2 Unlock / Jailbreak OS X | Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-15-2008, 05:11 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 227
Thanks: 1
Thanked 29 Times in 24 Posts
Toolchain C++ issues: can't locate -lstdc++

I'm trying to build some C++ with the toolchain, and I keep getting a linking error that says arm-apple-darwin-ld can't locate -lstdc++. Is this a known issue for anyone?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 03-16-2008, 05:16 AM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,206
Thanks: 43
Thanked 197 Times in 158 Posts

I am using Objective-C++ with no problem.

What do you get if you type in arm-apple-darwin-g++ at the command prompt?

Are you trying to use straight C++ or Objective-C++? Can you post your Makefile CFLAGS and LDFLAGS lines?

Last edited by NetMage; 03-16-2008 at 05:22 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 03-16-2008, 04:02 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 227
Thanks: 1
Thanked 29 Times in 24 Posts

These classes are straight C++ at this point...

I've actually butchered my Makefile in a desperate attempt to get this error resolved...the LDFlags are currently: -lobjc -framework CoreAudio (etc), although I did have a -lstdc++ at one point. And now even without it, even after I delete the *.o files, I still get this -lstdc++ error.


The C flags are currently blank, the CPP flags are just the -I/usr/local/arm-apple-darwin/include/CoreAudio type flags.

So at one point, I had incorporated all the things that people said to incorporate to compile these things, but I've been cutting it down, so now it's pretty much like the standard makefile I use to compile ObjC, except for:
Code:
CXX=arm-apple-darwin-g++
LD=$(CXX)
When I run arm-apple-darwin-g++ on an individual file, I get the same "Can't locate file for -lstdc++" error.

I seem to remember that when this trip began, I was getting an error about being unable to find method for std::(such and such)...

I'm not familiar with the land outside of Java, to this makefile stuff is new to me...

Thanks
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


Go to Top
ModMyI

All times are GMT -6. The time now is 10:37 PM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 | Dedicated Server Hosting by SingleHop | Copyright © 2007-09 by ModMy, LLC. All rights reserved.

RSS / Contact Us / / ModMyi Home / Archive / Privacy Statement / Top


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122