-----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;
                                                               ^
  CXX    LyX.o
1 error generated.
...

When I checked Lexer.h, I found:

...
#ifndef LEXER_H
#define LEXER_H

#include "support/strfwd.h"
...

which I had thought meant that the template _should_ be declared for
Lexer.h, and thus for Lexer.cpp .

However, the beginning of Lexer.cpp has

...
#include <config.h>

#include "Lexer.h"

#include "support/convert.h"
#include "support/debug.h"
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/gzstream.h"
#include "support/lassert.h"
#include "support/lstrings.h"
#include "support/lyxalgo.h"
#include "support/types.h"

#include <functional>
#include <istream>
#include <stack>
#include <vector>
...

(i.e. no src/strfwd.h).  I assumed that indicated that I needed to
patch Lexer.cpp to #include "support/strfwd.h" explicitly, but that
doesn't seem to solve the problem.
- -- 
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/

iEYEARECAAYFAk5suVYACgkQB8UpO3rKjQ/3qQCgj7knEGLvP+FszCv/g6FTh7DU
am8AoIznEqhMx6HHRTVQab0eOHCkY/iE
=Go+d
-----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

Reply via email to