Csound Csound-dev Csound-tekno Search About

[Csnd] "csoundCore.h" asks for not existing "pthread.h"

Date2014-08-21 19:32
FromPablo Frank
Subject[Csnd] "csoundCore.h" asks for not existing "pthread.h"
"csoundCore.h" asks for not existing "pthread.h" :

When this is typed:
C:\MinGW\bin>gcc -O2 -shared -o X.dll X.c -DUSE_DOUBLE -I "C:\Program Files (x86)\Csound6\include\csound"

the result is:

In file included from C:\Program Files (x86)\Csound6\include\csound/sysdep.h:111:0,
                 from C:\Program Files (x86)\Csound6\include\csound/csoundCore.h:31,
                 from C:\Program Files (x86)\Csound6\include\csound/csdl.h:111,
                 from X.c:1:
C:\Program Files (x86)\Csound6\include\csound/float-version.h:31:0: warning: "USE_DOUBLE" redefined [enabled by default]

 #define USE_DOUBLE
 ^
<command-line>:0:0: note: this is the location of the previous definition
In file included from C:\Program Files (x86)\Csound6\include\csound/csdl.h:111:0,
                 from X.c:1:
C:\Program Files (x86)\Csound6\include\csound/csoundCore.h:33:21: fatal error: pthread.h: No such file or directory
 #include <pthread.h>
                     ^
compilation terminated.

Date2014-08-21 20:29
FromRory Walsh
SubjectRe: [Csnd] "csoundCore.h" asks for not existing "pthread.h"

You will need to download pthread for Windows and add the path. Building on windows is quite a pain :(

On 21 Aug 2014 20:33, "Pablo Frank" <frank_pablo@hotmail.com> wrote:
"csoundCore.h" asks for not existing "pthread.h" :

When this is typed:
C:\MinGW\bin>gcc -O2 -shared -o X.dll X.c -DUSE_DOUBLE -I "C:\Program Files (x86)\Csound6\include\csound"

the result is:

In file included from C:\Program Files (x86)\Csound6\include\csound/sysdep.h:111:0,
                 from C:\Program Files (x86)\Csound6\include\csound/csoundCore.h:31,
                 from C:\Program Files (x86)\Csound6\include\csound/csdl.h:111,
                 from X.c:1:
C:\Program Files (x86)\Csound6\include\csound/float-version.h:31:0: warning: "USE_DOUBLE" redefined [enabled by default]

 #define USE_DOUBLE
 ^
<command-line>:0:0: note: this is the location of the previous definition
In file included from C:\Program Files (x86)\Csound6\include\csound/csdl.h:111:0,
                 from X.c:1:
C:\Program Files (x86)\Csound6\include\csound/csoundCore.h:33:21: fatal error: pthread.h: No such file or directory
 #include <pthread.h>
                     ^
compilation terminated.