It has a -I./Include argument.Here is the gcc command that fails:Yes I'm using makefile but I think the problem is different.Hi Erik,
Thanks for the response.
gcc -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Python/asdl.o Python/asdl.c
So, I surf the Internet (a lot) and I found that at initial there were no autotool support for installing python from source.Later I found a Python 3.4 page were I could download an src setup for mingw installation. Unfortunatly that doesn't work either.
So I reinstalled my Python and somehow I could link the library to my project. (I don't know how this possible, but the latest version of 2.7 works with my project. Blind luck I guess.) I could use PyRun_SimpleString but the PyRun_SimpleFileEx call crashes for some reason.
Than I tried boost::python and it crashes aswell at the first object result = eval("5/2"); call.
(I didn't forget to call Py_Initialize();).Any suggestions?Thanks,Miklós2014-06-03 23:18 GMT+02:00 Erik H <ice.rikh@gmail.com>:ErikRegards,Hi Miklós,Are you using a makefile? If so, it looks like you need to add -I/cygdrive/e/INSTALL/python_src/Python-2.7.6/Include to the Makefile's CFLAGS or CC variable, or somehow ensure that -I/cygdrive/e/INSTALL/python_src/Python-2.7.6/Include is passed to the compiler in any case.
On Mon, Jun 2, 2014 at 3:17 AM, Miklós Tóth <spiralfuzet@gmail.com> wrote:
_______________________________________________Thanks,What am I missing? Any thoughts?but the corresponding file is there:Hi!I get the following error:
Any updates on this?
/cygdrive/e/INSTALL/python_src/Python-2.7.6 $ mingw32-make process_begin: CreateProcess(NULL, /usr/bin/mkdir -p Include, ...) failed. make (e=2): The system cannot find the file specified. mingw32-make: *** [Include/graminit.h] Error 2
/cygdrive/e/INSTALL/python_src/Python-2.7.6 $ ls Include/g* Include/genobject.h Include/graminit.h Include/grammar.h
Miklós2014-05-27 14:06 GMT+02:00 Miklós Tóth <spiralfuzet@gmail.com>:
MiklósCould you give me some advice, or links to achieve my goal?So my python27.lib is "incompatible". I want to compile it from code but I failed with mingw32.As far as I understand I need python headers and libs.Hi All,I want to embed python in my c++ code using boost.python library.
I'm using gcc4.6.3 and qt 4.8.2 and boost 1.49 on windows 7.Thanks,
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users