Author Topic: iOS C++ fails on virtual function check  (Read 564 times)

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1933
  • Reputation: 188
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
iOS C++ fails on virtual function check
« on: September 06, 2012, 09:23:03 am »
G++ fails on virtual function check



Google tells me nothing

Does G++ on iOS not support virtual functions, or am I missing some package, or did something wrong
??
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

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: iOS C++ fails on virtual function check
« Reply #1 on: September 06, 2012, 01:59:38 pm »
Can you verify that g++ works at all? There is a symlink that you need for g++ to work, there is a package on cydia for it.  Something like libstdc++  Also can you post the the relevant part of config.log?

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1933
  • Reputation: 188
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: iOS C++ fails on virtual function check
« Reply #2 on: September 07, 2012, 10:53:52 pm »
I made sure I had that lib symlink installed, as well as other libs, but error in log is looking for it. I have reinstalled it, thinking something got messed up, still not working

Code: [Select]
configure:8631: checking if -fno-implement-inlines implements virtual functions
configure:8668: g++ -o conftest  -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines   conftest.cpp  >&5
ld: library not found for -lstdc++
collect2: ld returned 1 exit status
configure:8668: $? = 1
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

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: iOS C++ fails on virtual function check
« Reply #3 on: September 08, 2012, 01:16:11 pm »
That indicates that the library/symlink isn't setup correctly, no doubt about that. 

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1933
  • Reputation: 188
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: iOS C++ fails on virtual function check
« Reply #4 on: September 08, 2012, 03:19:24 pm »
Yeah I'm not sure whats wrong. Reinstalled it, still does not work
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

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: iOS C++ fails on virtual function check
« Reply #5 on: September 08, 2012, 06:44:34 pm »
Try making a copy of libSystem as /usr/lib/libstdc++.dylib and see what happens with that, otherwise I would trying doing a find and replace and remove -lstdc++ from configure&Makefile

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1933
  • Reputation: 188
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: iOS C++ fails on virtual function check
« Reply #6 on: September 09, 2012, 12:46:55 am »
Could not copy at first bc of the symlink. I removed, made a copy and I was off to the races. Just had a few more dependencies to install

Thanks
+1

./configure finished created makefile, but make failed. Too late for me to look into it, so it will be another day
Code: [Select]
unistd.h:705:28: error: crt_externs.h: No such file or directoryLooks like some missing header, from someplace, not sure yet
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4018
  • Reputation: 217
  • Badges:
Re: iOS C++ fails on virtual function check
« Reply #7 on: September 09, 2012, 09:38:33 am »
Try putting this in /usr/include/

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1933
  • Reputation: 188
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: iOS C++ fails on virtual function check
« Reply #8 on: September 09, 2012, 09:15:06 pm »
Solved that. Now I have a new error, will post if I get stumped

Thanks
+1
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1933
  • Reputation: 188
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: iOS C++ fails on virtual function check
« Reply #9 on: September 09, 2012, 09:51:51 pm »
I've got an onion now :(

After adding file after file from Apples opensource library, it was looking for __config. I added it from apple, and inside apple file, it is listed as "for Windows NT". Now its looking for windows.h and asking me to define _WIN32_WINNT, as well as having non-fatal issues with the cstddef.h I got from Apple
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

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

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4018
  • Reputation: 217
  • Badges:
Re: iOS C++ fails on virtual function check
« Reply #10 on: September 10, 2012, 02:46:56 pm »
Did you try downloading windows.h?

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1933
  • Reputation: 188
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: iOS C++ fails on virtual function check
« Reply #11 on: September 10, 2012, 02:53:58 pm »
No I have not. I get wary about adding windows anything, this is a small linux program, it does not need or use anything from windows. Its the apple headers that call for windows bologna
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you