[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] how to set the 'include' path in embeded C script?

From: oyster
Subject: [Tinycc-devel] how to set the 'include' path in embeded C script?
Date: Wed, 27 Dec 2006 21:29:14 +0800

Hi, everyone.
In fact, I use libtcc.so in http://www.cs.tut.fi/~ask/cinpy/, which is
a Python(www.python.org) library can implement functions with C in
Python script directly.

My question is, how to set the 'include' path, so that libtcc.so can
find it. Thanx
The following python exits with "ValueError: tcc_relocate returned
error code -1."
import ctypes
import cinpy
               #include "stdlib.h"
               #include "stdio.h"
               #include "math.h"

               float fraction(void)
                return sin(3.1415926/6); //that will err
                //return 1; //but this will be ok
print fraction()

reply via email to

[Prev in Thread] Current Thread [Next in Thread]