Back to the main page.
Bug 3290 - When compiling for x64 on windows using VS2015 there are linker errors with pthreadVC2.lib
Status | ASSIGNED |
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 |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
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