-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9/11/11 1:06 PM, Martin Costabel wrote: > On 11/09/11 15:36, Alexander Hansen wrote: >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> >> I'm working on moving LyX (specifically the "lyx2" packages) over >> to Lion, but I've got a C++ issue. >> >> I get the following error from clang: >> >> ... In file included from Lexer.cpp:16: ./Lexer.h:225:13: error: >> implicit instantiation of undefined template >> 'std::basic_string<char, std::char_traits<char>, >> std::allocator<char> >' t = T(lex.getString()); ^ >> ./support/strfwd.h:42:64: note: template is declared here >> template<typename Char, typename Traits, typename Alloc> class >> basic_string; > > There is some noise on google on this kind of things, for example > <http://llvm.org/bugs/show_bug.cgi?id=10521> which seems to imply > that the whole strfwd.h stuff is illegal, but tolerated by earlier > compilers. > > [] >> which I had thought meant that the template _should_ be declared >> for Lexer.h, and thus for Lexer.cpp . > > It is declared, but not defined. I don't know enough C++ to see why > they don't simply #include<string> before (or instead of) their > strfwd.h. What happens if you do this at the beginning of > strfwd.h? > > Otherwise, I suspect this is one of the packages that will need to > use llvm instead of clang. >
Thanks! Unfortunately, #include <string> in strfwd.h didn't do the trick. - -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5tOf8ACgkQB8UpO3rKjQ8FIgCgpAcyi+TMfNPJeqKouZ9gkz6R rbkAn22oGqC8yUpPMYBzocBAPN5RnAwU =fQ04 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel