You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#if FLEXT_OS == FLEXT_OS_WIN
post("Not implemented on Windows!");
// int err = (int)ShellExecute(NULL,"edit",fname,NULL,NULL,SW_SHOW);// if(err == SE_ERR_NOASSOC) {// // no association found - try notepad// post("Not implemented on Windows!");// //err = (int)ShellExecute(NULL,NULL,"notepad.exe",fname,NULL,SW_SHOW);// }// else if(err == ERROR_FILE_NOT_FOUND || err == SE_ERR_FNF)// post("py/pyext - File not %s found",fname);// else if(err <= 32)// post("py/pyext - Unknown error opening %s",fname);
then I am able to compile pybase but pybuffer I get error:
source/pybuffer.cpp: In function 'long int buffer_hash(PyObject*)':
source/pybuffer.cpp:149:12: error: cast from 'flext_single<void>::buffer*' to 'long int' loses precision [-fpermissive]
149 | return (long)(((pySamplebuffer *)self)->buf);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/pybuffer.cpp: In function 'int buffer_getbuffer(PyObject*, Py_buffer*, int)':
source/pybuffer.cpp:261:54: error: 'PY_NUMPY_BUFFER_FORMAT' was not declared in this scope
261|view->format=(flags&PyBUF_FORMAT)?(char*)PY_NUMPY_BUFFER_FORMAT : NULL;
| ^~~~~~~~~~~~~~~~~~~~~~
source/pybuffer.cpp: At global scope:
source/pybuffer.cpp:1037:5: error: invalid conversion from 'long int (*)(PyObject*)' {aka 'long int (*)(_object*)'} to 'hashfunc' {aka 'long long int (*)(_object*)'} [-fpermissive]
1037 | buffer_hash, /*tp_hash */
| ^~~~~~~~~~~
| |
| long int (*)(PyObject*) {aka long int (*)(_object*)}
make: *** [pd-lib-builder//Makefile.pdlibbuilder:955: source/pybuffer.o] Erro 1
Hi, I am trying to compile it for Windows, and I am having this error:
Could someone help me? The project to update
py
topython 3
would is great.I am trying to compile it using Windows 11, 64 bits I am in
mingw64
, and I add thein
Makefile.pdlibbuilder
.Thank you very much!
The text was updated successfully, but these errors were encountered: