Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - __cxa_guard_*: (5 Items)
   
__cxa_guard_*  
When linking a C++ program with 4.2.1 the linker complains that __cxa_guard_* are undefined behavior.  I try forcing it 
to link with libstdc++.  That solved the link issue ( but I don't think that's right)

First libstdc++.so.6 cannot be found at run time because they are no link to it in /usr/lib.

Once I copied the libstdc++.so.x to /usr/lib the program would crash before main().

For now I got around the problem by using -fno-threadsafe-statics.  Program doesn't use thread, for now.
Re: __cxa_guard_*  
Hi Mario,

Did you see my reply to the following post?

http://community.qnx.com/sf/discussion/do/listPosts/projects.toolchain/discussion.core_development_tools.topc1051

You can either download the updated gcc 4.2.1 package or objcopy libsupc++ to libcxa. Please let me know if you have any
 questions.

Regards,

Ryan Mansfield
Re: __cxa_guard_*  
I missed that post.  Problem solved thanks!
Re: __cxa_guard_*  
That should probably be the first thing that people see when they go to 
the 4.2.1 page, until it's resolved. :-)

Mario Charest wrote:
>
> I missed that post.  Problem solved thanks!
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post1428
>

-- 
cburgess@qnx.com

Re: __cxa_guard_*  
Well, it is resolved now. The packages were updated shortly after Ken pointed out the problem. When I updated the 
packages, the number of downloads of the effect packages was very low. So only the eager people got bitten by my error. 


Regards,

Ryan Mansfield