Question:
I am using visual studio 2013 pro using latest chilkat build: chilkat-9.5.0-x86-vc12
c:chillchilkat-9.5.0-x86-vc12includechilkatDefs.h(70): fatal error C1083: Cannot open include file: 'SystemTime.h': No such file or directory
in chilkatdefs.h I must comment out lines 70 and 71 and error goes away
see below //#include "SystemTime.h" //#include "FileTime.h"
so what is up????
Add
#include <windows.h>prior to including the Chilkat headers.
If you open Chilkat's FileTime.h header, you'll find this:
#ifndef FILETIME_H_INCLUDED #define FILETIME_H_INCLUDED// WINBASE_H is defined by MinGW's winbase.h #if !defined(_WINBASE) && !defined(MINWINBASE) && !defined(_WINBASE_H)
typedef struct _FILETIME { unsigned long dwLowDateTime; unsigned long dwHighDateTime; } FILETIME;
#endif
#endif
Clearly, the structure definition is there for non-Windows systems. If any of the above *WINBASE* definitions exist, then the FILETIME definition is omitted. Therefore, it should be omitted on a Windows system, but present if compiling in a non-Windows environment.
The question then becomes "Why are none of the *WINBASE* defined?". Just include <windows.h> to solve that problem..
Problem solved adding #include <windows.h> *I'm using mingw64 and Chilkat v9.5.0.69
I downloaded from here:
http://www.chilkatsoft.com/download/9.5.0.43/chilkat-9.5.0-x86-vc12.zip
Unzipped, and verified that in the "include" subdirectory, all of the files exist: chilkatDefs.h, SystemTime.h, and FileTime.h.
Hi karlKemp, were you able to fix your problem with _FILETIME redefinition?
c:program files (x86)windows kits8.1includesharedminwindef.h(263): error C2011: '_FILETIME' : 'struct' type redefinition c:chillchilkat-9.5.0-x86-vc12includefiletime.h(10) : see declaration of '_FILETIME'