libyal / libevtx

Library and tools to access the Windows XML Event Log (EVTX) format
GNU Lesser General Public License v3.0
188 stars 49 forks source link

Windows Build Issues #1

Closed cschmitt-r7 closed 9 years ago

cschmitt-r7 commented 9 years ago

Hi,

I'm trying to get a build compiled on Windows 7 x64 w/ VS 2013 but it seems to be bombing out when building libcthreads throwing...

1>------ Build started: Project: libcthreads, Configuration: Release Win32 ------
1>  libcthreads_thread_pool.c
1>..\..\libcthreads\libcthreads_thread_pool.c(44): fatal error C1189: #error :  TP_POOL support not implemented yet
========== Build: 0 succeeded, 1 failed, 10 up-to-date, 0 skipped ==========

I noticed it said multi-threading support is planned? Is there a way to disable the Thread Pool?

cschmitt-r7 commented 9 years ago

I dropped down to Visual Studio 2010 and was able to get some builds.

joachimmetz commented 9 years ago

noticed it said multi-threading support is planned? Is there a way to disable the Thread Pool?

In https://github.com/libyal/libevtx/blob/master/common/config_winapi.h#L26 you can set WINVER accordingly e.g. WINVER=6.0 (Vista and later)

TP_POOL support is for Windows 8.0 (WINVER=6.2) and later; and has not been implemented yet. https://github.com/libyal/libcthreads/blob/bb8489d16fbcde5b574c9b6549e85c8d027f5865/libcthreads/libcthreads_thread_pool.c#L44