Anybody know how to fix this error? g+±4.2 failed with exit code 1. I get this everytime I try to compile my project. I have Unity iPhone Basic, with Xcode 3.1.4. I’ve added all the Frameworks and followed the steps exactly. I’m using the most current version of OpenFeint. Thanks.
What device firmware are you compiling for? I believe I had to compile with the 3.0 SDK to get rid of the error. If that doesn’t help, trying going into the project settings and changing the version of gcc your using to compile.
I’ve been compiling for both 2.2.1 and 3.0, switching between GCC versions 4.0 and 4.2 as I go, but I still get the error.
I’ve got the same problem. Currently looking for solutions here but couldn’t figur it out:
http://help.openfeint.com/discussions/suggestions/56-of-unity
http://help.openfeint.com/faqs/guides-2/openfeint-basics
http://help.openfeint.com/faqs/guides-2/openfeint-unity-iphone-support
I checked out all those links but nothing was able to help me either. I emailed a guy from OpenFeint last night and sent him a screen shot of my error, so maybe that’ll help.
Hey guys,
Just wondering if you ever had any luck overcoming the g++ build error. I have also reviewed all threads and following instructions, but can’t seem to get around this one.
I’m targeting 2.2.1 | Release
Unity Advanced 1.5 build player with micro lib
XCode version 3.1.4
Any help would be appreciated.
EDIT: Also, I’m attempting to integrate v. 2.2 of OF
Matt
No, never. I switched to Agon Online. They have extraordinary support, responding quick on any problems you might have.
Totally agree. I just used Agon in my last project, and would certainly use them again. The spec for the current project I am working on requires OpenFeint.
MJ
FWIW, I haven’t seen this error in OF, yet. Can you be more specific?
I’m using:
Unity 1.5 Advanced
OF 2.2
XCode 3.2.1 (Gasp, SL!)
The “error” info I see when building is ~150 warnings like so:
int* std::__copy_backward<true, std::random_access_iterator_tag>::copy_b<int>(int const*, int const*, int*)has different visibility (default) in /Users/Jeff/ofeinttest/Libraries/libiPhone-lib.a(MonoBehaviour.o) and (hidden) in /Users/Jeff/ofeinttest/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/OFISerializer.o
Hey Drjest… I started from scratch and seem to have it now. I still get the 115 or so warnings, but it builds fine now and launches the interface after the game runs for the first time.
Maybe you can help me with one oddity I did notice however. I have my game set for portrait mode, but everything is displayed landscape. If I tilt the device, a black frame of sort rotates in OpenFeint, but all the content stays in landscape mode? Am I missing something obvious here?
Thanks,
Matt
I’ve seen the same thing, but since my game is landscape to begin with, I haven’t looked into why I see the black frame rotate when I tilt the device to portrait.
If I run across a solution, I’ll post it here.
Thanks neighbor ![]()
Qapla’!
Using info from the http://help.openfeint.com/discussions/questions/160-integrating-with-unity3d-274-warnings-while-linking thread, in particular this:
I got rid of the very annoying “g+±4.2 failed with exit code 1”. I’ve final got my test project compiled and am able to open the dashboard. Been at it since yesterday afternoon. Sheesh.
Manually adding in all the requires frameworks worked for me. By manually, I mean hunting down each framework and making sure they are from the same OS that your building for. (i.e, if building for 2.2.1, make sure every framework is from the OS 2.2.1 folder.) Even the ones that come with the Unity project.
Every now and then Xcode will complain, so just rebuild from Unity using the “Append” option. After all this, I can compile with no problems (neverminding the 100+ warnings :roll: ), open the dashboard, unlock achievements…the works. Hope that helps ![]()