View Single Post
  #3 (permalink)  
Old 05-04-2008, 10:02 AM
BlueDream BlueDream is offline
Newbie
 
Join Date: May 2008
Posts: 4
Rep Power: 0
BlueDream is on a distinguished road
Default Re: Using python in C

Hmmn, no I wasn't linking it on the command line with gcc.

I tried the example you gave.

:\gcc pipe.c -lpython2.4

and voila!

My code is not working, but at least I can see it's getting past that darn udefined variable problem.

Now all I need to do is figure out how to print the variable in python with PyRun_SimpleString( ..... ).

Thanks.
Reply With Quote