Problem compiling C++ code with python embedded

2006-10-10 Thread vduber6er
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

Re: Trouble including Python.h

2006-06-23 Thread vduber6er
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 >

Re: having trouble importing a module from local directory

2006-05-13 Thread vduber6er
newbie reply, but how do i go about doing that? thanks! -- http://mail.python.org/mailman/listinfo/python-list

having trouble importing a module from local directory

2006-05-12 Thread vduber6er
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

Re: Can my python script return a value to the c program executing it?

2006-04-24 Thread vduber6er
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

Can my python script return a value to the c program executing it?

2006-04-21 Thread vduber6er
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