On 9/11/11 6:45 PM, Alexander Hansen wrote: > 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.
Actually, when I wrote that I neglected actually to apply the patch. :-) That worked, and got me to a new error to work on. -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ 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