Juce & Python

Dear all,

I am trying to compile code that includes both JUCE and Python (using anaconda).

The issue is the following:

When including Python.h, it tries to load pyport.h as well.

In there, there is the following:

#ifdef HAVE_SSIZE_T

typedef ssize_t   Py_ssize_t;

#elif SIZEOF_VOID_P == SIZEOF_SIZE_T

typedef Py__intptr_t   Py_ssize_t;

 

This causes a conflict with Juce, which in juce_MathsFunctions.h calls:

#if JUCE_MSVC

  typedef pointer_sized_int ssize_t;

#endif

 

The error is:

error C2872: 'ssize_t': ambiguous symbol

 

Any ideas how I could resolve this issue?

 

1 Like