This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem compiling freetype
- To: gcc-help at gcc dot gnu dot org
- Subject: Re: Problem compiling freetype
- From: Murali Potla <murali_linux at yahoo dot com>
- Date: Mon, 6 Aug 2001 15:34:42 +0530
- Reply-To: murali_linux at yahoo dot com
When i am trying to compile freetype using gcc-3.0
in ttkmkfdir2 directory
the following error is coming
libtool --mode=compile g++ -Wall -pedantic -I../freetype-pre1.4/lib/. -ggdb
-o ttmkfdir.o -c ttmkfdir.cpp
rm -f .libs/ttmkfdir.lo
g++ -Wall -pedantic -I../freetype-pre1.4/lib/. -ggdb -c ttmkfdir.cpp -fPIC
-DPIC -o .libs/ttmkfdir.lo
In file included from ttmkfdir.cpp:7:
ttf.h:34: parse error before `&' token
make: *** [ttmkfdir.o] Error 1
Whats wrong here
I am sending that file as attchment
Thanks for ur help
/* -*- C++ -*- */
#ifndef TTF_H__
#define TTF_H__
#include <string>
#include <freetype.h>
#include "util.h"
#include "encoding.h"
namespace ttf {
class Engine {
public:
Engine (void) { TT_Init_FreeType (&engine);}
~Engine (void) {TT_Done_FreeType (engine);}
operator TT_Engine (void) {return engine;}
protected:
TT_Engine engine;
};
typedef util::Singleton<Engine> engine;
class Face {
public:
typedef std::vector<std::string> xlfdcontainer;
Face (const std::string &filename);
~Face (void);
const char *FontFamilyName (void) const;
const char *FoundryName (void) const;
const char *Weight (void) const;
const char *Width (void) const;
xlfdcontainer xlfdnames;
protected:
const std::string xlfd (const string &encodingname) const;
bool MappingPresent (int cmapidx, NumericMapping *m);
const char *OS2Weight (void) const;
const char *PanoseWeight (void) const;
const char *ExtractName (int idx, bool unicode) const;
const char *OS2Width (void) const;
const char *PanoseWidth (void) const;
mutable char name_buffer[257];
TT_Face face;
TT_Face_Properties properties;
};
};
#endif /* TTF_H__ */