Re: Linker shows "has different visibility" warning
Re: Linker shows "has different visibility" warning
- Subject: Re: Linker shows "has different visibility" warning
- From: Dmitry Markman <email@hidden>
- Date: Sat, 12 Jan 2008 01:16:28 -0500
Hi
I had that warning
it said that some symbol has different visibility in the file1.o and
file2.o
I solved that problem in the following way
file1. cpp has set of includes A
and file2.cpp has set of includes B
A and B have some subset of includes
but file1.cpp and file2.cpp had includes in that subset with different
order
so I made order of includes in file1.cpp and file2.cpp the same
file1.cpp
#include "f1.hpp"
#include "f2.hpp"
#include "f3.hpp"
#include "f4.hpp"
#include "f5.hpp"
#include "f6.hpp"
file2.cpp
#include "f11.hpp"
#include "f6.hpp"
#include "f22.hpp"
#include "f3.hpp"
#include "f5.hpp"
#include "f4.hpp"
so I changed order of includes in the file2.cpp
ile2.cpp
#include "f11.hpp"
#include "f3.hpp"
#include "f4.hpp"
#include "f5.hpp"
#include "f6.hpp"
#include "f22.hpp"
hope it will help
On Jan 11, 2008, at 10:43 AM, Dieter Oberkofler wrote:
After upgrading from XCode 2.4.1 to 2.5 running on Leopard the
linker shows me thousands of "has different visibility" warnings.
(ld: warning __ZN13PWR_CStringRWC2ERKS_.eh has different visibility
(1) in /MyDev/LJS_DEV/app/trunk_build/debug/
libLJS_SQL_LIB.a(costcentre.o) and (2) in /MyDev/LJS_DEV/app/trunk/
xvt/mac/lib/libXVTPWRd.a(CTdiPackage.o))
Has someone already solved this one?
Thank you
Dieter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Dmitry Markman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden