Hello,
I just recently switched my code from one server to another and now
having some problems compiling my code. I was able to compile fine
with my last server now but this current one is giving me problems. My
build file is as follows
g++ -Wall ibdws.cpp ../cgic205/cgic.c -oibdws.cgi -Lcgrap
Try
#undef _DEBUG
#include "C:\Python24\include\python.h"
or which ever path your python.h is located at
works for me
Marcelo Gosling wrote:
> Hi, everyone.
>
> This is on WinXP SP2, with Python 2.4.3 and DJGPP gcc 4.1.0.
>
> I'm having trouble including Python.h in a C file. The following C
>
newbie reply, but how do i go about doing that? thanks!
--
http://mail.python.org/mailman/listinfo/python-list
First off this is in unix.
I have a C file that has python embedded in it. In the script I have
the following
PyRun_SimpleString(code);
where
code = "import mymodule"
however I get this error
Traceback (most recent call last):
File "", line 1, in ?
ImportError: No module named mymodule
Obje
That link seemed to do the trick with a little bit of edits. Thanks a
lot Philippe!
Eric
--
http://mail.python.org/mailman/listinfo/python-list
I have a C program that calls my python script by
exec_pycode(code);
code = "import CheckFasta\nCheckFasta.CheckFasta (\"sampledata.txt\",
%d)\n", PyNum);
CheckFasta.py is my python script with a def CheckFasta in it that
returns a string.
Is there a way for my C code to get the return value f