linker error with release cef on mac

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

linker error with release cef on mac

Postby amol » Tue Jan 14, 2014 7:24 pm

ld: illegal text-relocation to __ZNSs4_Rep20_S_empty_rep_storageE in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/libstdc++.dylib from __ZN8Chromium13ClientHandler24OnProcessMessageReceivedE9CefRefPtrI10CefBrowserE16cef_process_id_tS1_I17CefProcessMessageE in blah.cpp.o for architecture x86_64


I get no errors in debug builds, but get this when I link with release cef.

any ideas ?

thanks.
amol
Techie
 
Posts: 19
Joined: Sat Jan 04, 2014 12:58 am

Re: linker error with release cef on mac

Postby magreenblatt » Tue Jan 14, 2014 7:57 pm

What CEF version and what Xcode version? What are you building?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: linker error with release cef on mac

Postby amol » Tue Jan 14, 2014 8:06 pm

oh,yeah that would have been useful, Sorry!

Version 1650.1552

I'm integrating CEF into a large 3rd party game engine code base. I figure this must be because there are some compiler/linker flag differences between the wrapper dll and the game engine. however, I can't quite figure out what those could be. The only difference between compiler flags on the engine side for debug vs release is -O3 vs -O0
amol
Techie
 
Posts: 19
Joined: Sat Jan 04, 2014 12:58 am

Re: linker error with release cef on mac

Postby magreenblatt » Tue Jan 14, 2014 8:32 pm

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: linker error with release cef on mac

Postby amol » Tue Jan 14, 2014 8:55 pm

yeah, I already saw that, but I can't tell what the variable is in my case.

I've narrowed it down to working with -O1, but not higher. According to http://stackoverflow.com/questions/1554 ... ion-levels there's not that much more in O2, so I should be able to narrow it down from here.
amol
Techie
 
Posts: 19
Joined: Sat Jan 04, 2014 12:58 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 180 guests