FDK: FDK8 and Visual C++ 2003
Scott Prentice
sp at leximation.com
Tue Apr 8 08:45:43 PDT 2008
Hi Rick...
Here's what I've added to the code to compile FDK8 apps in VC7 (VS2003) ..
// FDK8 required in VC7
#include <sys/types.h>
#include <sys/stat.h>
int _stat32( const char *path, struct _stat *buffer ) { return
_stat(path, buffer); }
int _wstat32( const wchar_t *path, struct _stat *buffer ) { return
_wstat(path, buffer); }
long _ftol( double );
long _ftol2_sse( double dblSource ) { return _ftol( dblSource ); }
I'm successfully compiling with VC8 (VS2005 Standard) .. I don't know
about the "Express Edition". Note that if you want to build an
import/export client you must use VC8, but you can build regular clients
using older versions of the compiler.
If you need more info, you might want to try the "frame_dev" Yahoo group.
Cheers,
...scott
Scott Prentice
Leximation, Inc.
www.leximation.com
+1.415.485.1892
Rick Quatro wrote:
> According the FrameMaker 8 FDK Supplement, I can compile FDK 8 clients in
> Visual C++ 2003 (7.1). On page 22, it says to put the following lines in the
> source code of the FDK client:
>
> extern "C" {
> long _ftol2(double);
> long _ftol2_sse(double dblSource) { return _ftol2(dblSource); } }
>
> When I do that and attempt to build the plugin, I get a synax error pointing
> to the line
>
> extern "C"
>
> The error is
>
> error C2059: syntax error: 'string'
>
> Any help would be appreciated. Thanks.
>
> Rick Quatro
> Carmen Publishing
> 585-659-8267
> www.frameexpert.com
>
> _______________________________________________
>
>
More information about the framers
mailing list