Re: Linker shows "has different visibility" warning
Re: Linker shows "has different visibility" warning
- Subject: Re: Linker shows "has different visibility" warning
- From: Greg Guerin <email@hidden>
- Date: Sat, 12 Jan 2008 12:44:51 -0700
Dmitry Markman wrote:
>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
If changing the order of inclusion alters visibility, it suggests there is
a visibility pragma somewhere in those includes that is not using a paired
push/pop, and so affects everything coming after it. It's probably wiser
to fix that instead of relying on a semi-magical inclusion order. It may
not be easy to find the exact cause of the problem, but letting visibility
run-on from one include to another seems like asking for trouble.
For reference, search ADC for keywords: visibility pragma
-- GG
_______________________________________________
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