Back to the main page.

Bug 3290 - When compiling for x64 on windows using VS2015 there are linker errors with pthreadVC2.lib

Reported 2017-04-28 12:09:00 +0200
Modified 2018-11-08 13:58:05 +0100
Product: FieldTrip
Component: external
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 blocker
Assigned to: Robert Oostenveld
Depends on:
See also:

Arian van Dorsten - 2017-04-28 12:09:59 +0200

Created attachment 836 Contains fixed .lib and source libs for reference D:\fieldtrip\realtime\src\external\pthreads-win64\lib\pthreadVC2.lib The name decoration for this file is wrong, x64 expects one less underscore than win32 versions. Maybe this is microsoft specific. It can be solved by creating a .lib from the pthreadGC2-w64.dll in the same folder First create a .def file, I used dumpbin /exports pthreadGC2-w64.dll > pthread_x64.def and some hand editing. You may use this magic spell: C:\fieldtrip\realtime\src\external\pthreads-win64\lib>lib /def:pthread_x64.def /OUT:pthread_x64.lib /machine:x64 resulting in a correct pthread_x64.lib

Robert Oostenveld - 2017-05-02 12:46:42 +0200

Thanks am I correct that these 4 files should replace the 5 files that are now in fieldtrip/realtime/src/external/pthreads-win64/lib?