This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I have recompiled the code I am working on with i686-pc-cygwin-g++ 4.5.3.In my experience, these sorts of errors arise when there really is something wrong with the code, usually involving sizes of integers (e.g. 'long' in struct's definition and 'int' in another, on a 64-bit machine). However, the linker is poorly-equipped to detect such errors unless the resulting objects have different sizes.
I get many of the following messages from the linker: /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: gcc-release/obj/BTest/Test.o: warning: duplicate section `.rdata$_ZTISs[typeinfo for std::basic_string<char, std::char_traits<char>, std::allocator<char> >]' has different size
I do not get this error cross-compiling the same code with i686-pc-mingw32-g++ 4.5.2.
Any chance that this comes from the new version?
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |