The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

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  
Old 03-15-2008, 06:11 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 227
Thanks: 1
Thanked 31 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  
Old 03-16-2008, 06: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,231
Thanks: 45
Thanked 202 Times in 162 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 06:22 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 03-16-2008, 05:02 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 227
Thanks: 1
Thanked 31 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



Go to Top
ModMyI

All times are GMT -6. The time now is 08:03 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top