This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Expected Behavior in Mixing -std=c++0x and default std?
- From: Hei Chan <structurechart at yahoo dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 8 Apr 2014 01:06:40 -0700 (PDT)
- Subject: Expected Behavior in Mixing -std=c++0x and default std?
- Authentication-results: sourceware.org; auth=none
- Reply-to: Hei Chan <structurechart at yahoo dot com>
Hi,
If I have a static library A that builds with default std with another header only library B, and then my program links library A and uses some classes in library B with -std=c++0x. Will this usage create any issue?
I am running into an issue that one of the member variables in library B (boost ASIO to be precise) has a different memory address (only off by 4 bytes) over time.
Any input is welcome.
Thanks in advance.
Cheers,
Hei
P.S. I am using GCC 4.6.x on CentOS 6.5.