I did some basic courses in C/C++ about 20 years ago and I really never liked to code in it. So I'm rusty/have no idea what I'm doing.
So my first problem I tried to add the "Python.h" header to the "HelloWorld" example plugin, and got some error that I can't figure out:
Code: Select all
making depends for PythonFAR.cpp
compiling PythonFAR.cpp
In file included from /Python27/include/unicodeobject.h:57:0,
from /Python27/include/Python.h:85,
from PythonFAR.cpp:3:
d:\mingw\include\ctype.h: In function 'int isdigit(int)':
d:\mingw\include\ctype.h:157:42: error: redefinition of 'int isdigit(int)'
__CRT_INLINE int __cdecl __MINGW_NOTHROW isdigit(int c) {return __ISCTYPE(c, _DIGIT);}
^
In file included from PythonFAR.cpp:1:0:
../common/CRT/crt.hpp:95:24: error: 'int isdigit(int)' previously defined here
__inline int __cdecl isdigit(int c)
^
In file included from /Python27/include/unicodeobject.h:57:0,
from /Python27/include/Python.h:85,
from PythonFAR.cpp:3:
d:\mingw\include\ctype.h: In function 'int isspace(int)':
d:\mingw\include\ctype.h:162:42: error: redefinition of 'int isspace(int)'
__CRT_INLINE int __cdecl __MINGW_NOTHROW isspace(int c) {return __ISCTYPE(c, _SPACE);}
^
In file included from PythonFAR.cpp:1:0:
../common/CRT/crt.hpp:105:24: error: 'int isspace(int)' previously defined here
__inline int __cdecl isspace(int c)
^
In file included from /Python27/include/unicodeobject.h:57:0,
from /Python27/include/Python.h:85,
from PythonFAR.cpp:3:
d:\mingw\include\ctype.h: In function 'int isxdigit(int)':
d:\mingw\include\ctype.h:164:42: error: redefinition of 'int isxdigit(int)'
__CRT_INLINE int __cdecl __MINGW_NOTHROW isxdigit(int c) {return __ISCTYPE(c, _HEX);}
^
In file included from PythonFAR.cpp:1:0:
../common/CRT/crt.hpp:115:24: error: 'int isxdigit(int)' previously defined here
__inline int __cdecl isxdigit(int c)
^
../makefile_gcc_target_inc:18: recipe for target 'final.32W.gcc/obj/PythonFAR.o' failed
mingw32-make.EXE: *** [final.32W.gcc/obj/PythonFAR.o] Error 1
Bonus question: How do I specify where the compiler searches for the .h files as I need to specify the full path for the Python.h file.
jonib