Author Topic: C++ compiler cannot create executables ^.^  (Read 1202 times)

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
C++ compiler cannot create executables ^.^
« on: August 02, 2012, 03:55:54 pm »
Trying to port something SEKRIT but im running into some problems with C++ :( I've installed everything related to c++ In cydia

configure:2457: checking for C++ compiler version
configure:2460: g++ --version </dev/null >&5
g++ (GCC) 4.2.1 (Based on Apple Inc. build 5555)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2463: $? = 0
configure:2465: g++ -v </dev/null >&5
Using built-in specs.
Target: arm-apple-darwin9
Configured with: ../llvm-gcc-4.2/configure --build=x86_64-unknown-linux-gnu --host=arm-apple-darwin9 --enable-static=no --enable-shared=yes --prefix=/usr --localstatedir=/var/cache/iphone-gcc --enable-languages=c,c++,objc,obj-c++ --enable-wchar_t=no --with-gxx-include-dir=/usr/include/c++/4.0.0
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5555)
configure:2468: $? = 0
configure:2470: g++ -V </dev/null >&5
g++: '-V' option must have argument
configure:2473: $? = 1
configure:2497: checking for C++ compiler default output
configure:2500: g++    conftest.cc  >&5
ld: library not found for -lstdc++
collect2: ld returned 1 exit status
configure:2503: $? = 1


Any helps :3? <3

Apetrick

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3511
  • Reputation: 90
  • <Apetrick> lank is 1337
  • Badges:
  • iDevices: Ipod Touch 4g
Re: C++ compiler cannot create executables ^.^
« Reply #1 on: August 02, 2012, 04:11:52 pm »
Get: compile c apps for ios 4 from insanelyi see if that helps any.
<%a12danrulz> Idk, but doing a DoS from an apple device is like fighting a bear with a plastic spork

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: C++ compiler cannot create executables ^.^
« Reply #2 on: August 02, 2012, 04:16:30 pm »
Already have it :(

Apetrick

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3511
  • Reputation: 90
  • <Apetrick> lank is 1337
  • Badges:
  • iDevices: Ipod Touch 4g
Re: C++ compiler cannot create executables ^.^
« Reply #3 on: August 02, 2012, 04:25:16 pm »
Can you post the make file?
<%a12danrulz> Idk, but doing a DoS from an apple device is like fighting a bear with a plastic spork

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: C++ compiler cannot create executables ^.^
« Reply #4 on: August 02, 2012, 04:29:40 pm »
It's not that, I've tried compiling other program's that requires C++ and it fails :l

Don't like seeing ads? Click here to register!

Apetrick

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3511
  • Reputation: 90
  • <Apetrick> lank is 1337
  • Badges:
  • iDevices: Ipod Touch 4g
Re: C++ compiler cannot create executables ^.^
« Reply #5 on: August 02, 2012, 04:44:25 pm »
Do you have gcc or fake-gcc?
<%a12danrulz> Idk, but doing a DoS from an apple device is like fighting a bear with a plastic spork

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4016
  • Reputation: 216
  • Badges:
Re: C++ compiler cannot create executables ^.^
« Reply #6 on: August 02, 2012, 04:45:03 pm »
Try setting the c++ compiler in the make file to cpp not g++.

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: C++ compiler cannot create executables ^.^
« Reply #7 on: August 02, 2012, 04:51:13 pm »
Try setting the c++ compiler in the make file to cpp not g++.
This is ./configure :L

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4016
  • Reputation: 216
  • Badges:
Re: C++ compiler cannot create executables ^.^
« Reply #8 on: August 02, 2012, 04:54:27 pm »
Then set the c++ compiler in the configure file to cpp not g++.

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: C++ compiler cannot create executables ^.^
« Reply #9 on: August 02, 2012, 05:37:13 pm »
Then set the c++ compiler in the configure file to cpp not g++.
g++ is correct, cpp is not. cpp is a c preprocessor (similar to gcc -E or g++ -E), not a compiler.


Try installing the following package from cydia: C++ Standard Library

That should be the correct name. The description is along the lines of "Just a tiny, crucial symlink."

Don't like seeing ads? Click here to register!

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: C++ compiler cannot create executables ^.^
« Reply #10 on: August 02, 2012, 05:44:15 pm »
^This, the description is something like "a tiny crucial symbolic link" 

The C++ lib is in libSystem.dylib but most programes look for libstdc++.dylib, this symlinks libSystem as libstdc++. 

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: C++ compiler cannot create executables ^.^
« Reply #11 on: August 03, 2012, 12:16:40 am »
ln -s libSystem.B.dylib /usr/lib/libstdc++.dylib

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: C++ compiler cannot create executables ^.^
« Reply #12 on: August 03, 2012, 02:04:46 am »
Already installed :(

LeoTh3o

  • Full Member
  • ***
  • Posts: 230
  • Reputation: 43
    • ET&C
  • Computers: MacBook Pro 15', half 2009, OS X 10.8.1
  • iDevices: iPod 3G iOS 5.1.1; iPad 2 WiFi iOS 5.1.1 jb
Re: C++ compiler cannot create executables ^.^
« Reply #13 on: August 03, 2012, 03:38:37 am »
If you have a way to get the iphone SDK, search until you find iPhoneSDKv.v.sdk (v= number. If you get the latest, it's 5.1). Inside that folder (please check it's for the iPhone and not the iPhone Simulator) grab a copy of usr/lib/libstdc++ and put in your device in /usr/lib. You're done.

Otherwise use the file I uploaded from SDK 5.1 (it must go in the same folder: /usr/local).
I'm not sure if you can use files from a SDK on a platform with a lower os.
0xEB        0xFE
jmp short -2

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: C++ compiler cannot create executables ^.^
« Reply #14 on: August 03, 2012, 07:51:04 am »
Already installed :(
If it is already installed I would expect a different error message than the original post.  Could you please verify that /usr/lib/libstdc++/dylib exists and if it does exist is the symbolic link not broken.  If that file does exist would you please check configure.log and verify that the error message is the same?  Thank you.