[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Devel] shared library under Windows
From: |
Thierry Frey |
Subject: |
RE: [Devel] shared library under Windows |
Date: |
Fri, 6 Apr 2001 15:29:12 +0200 |
Hi,
I've tried to compile freetype-2.0.1 using flat mode under Windows. I get
the following errors:
Compiling...
cidafm.c
e:\tosca\cadenza\tfrey_repeng_dev\freetype\flat_src\cidafm.c(180) : error
C2065: 't1_face' : undeclared identifier
ftmac.c
e:\tosca\cadenza\tfrey_repeng_dev\freetype\flat_src\ftmac.c(61) : fatal
error C1083: Cannot open include file: 'truetype/ttobjs.h': No such file or
directory
psaux.c
e:\tosca\cadenza\tfrey_repeng_dev\freetype\flat_src\psauxmod.c(19) : fatal
error C1083: Cannot open include file: 'psaux/psauxmod.h': No such file or
directory
psauxmod.c
e:\tosca\cadenza\tfrey_repeng_dev\freetype\flat_src\psauxmod.c(19) : fatal
error C1083: Cannot open include file: 'psaux/psauxmod.h': No such file or
directory
Error executing cl.exe.
freetype.dll - 4 error(s), 0 warning(s)
My correction for the first error was to change
FT_LOCAL_DEF
FT_Error CID_Read_AFM( FT_Face cid_face,
FT_Stream stream )
for
FT_LOCAL_DEF
FT_Error CID_Read_AFM( FT_Face t1_face,
FT_Stream stream )
Is this correct?
The last 3 errors are easily corrected by a FT_FLAT_COMPILE preprocessor
directive.
Furthermore, in ftgrays.h, it is written
/* On some systems and compilers (Win32 mostly), an extra keyword is
*/
/* necessary to compile the library as a DLL.
*/
/*
*/
#ifndef FT_EXPORT_VAR
#define FT_EXPORT_VAR( x ) extern x
#endif
What keyword are we talking about? Where do you insert it?
Thanks in advance,
Thierry
- RE: [Devel] shared library under Windows,
Thierry Frey <=