Code::Blocks Forums
User forums => Help => Topic started by: gReaen on March 18, 2008, 05:22:48 pm
-
Hello all,
I have a project which requires python files. I have included the python Include directory in the project build options Search directories. But the functions in those files require library files which are in .py format.
I tried linking the same but when i build my project, it shows a syntax error in those .py files and the file is displayed to be empty...
Is there a way to link the python libraries in Code::Blocks?
The components i have:
OS: Windows XP (SP2)/Windows 2000
CB: Nightly build 4893
Compiler: MinGW 5.1
wxWidgets: 2.8.7
-
do the .py files contain c/c++ or python?
if python then you can't compile them but you can import them by embedding python into your app (you would need to including relevant python headers and link against the libpython). if that is what you want to do, then this isn't really a codeblocks specific issue so your needs would probably be better met on another board. you might get some tips on how to setup the project files and CB environment here but that's about it.
if c/c++ then I'm just confused
-
If any kind of file appears empty, chances are there are invalid characters in it. Check your encoding.
-
Hello,
Thanks for the help. The files contained python statements. I have linked the lib file now and it works fine.