News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How to use libraries (python in my case) in CODE::BLOCKS

Started by arielby, July 01, 2008, 02:20:00 PM

Previous topic - Next topic

arielby

I want to create an application using the Python/C API in CODE::BLOCKS, but i don't know how to add libraries (like g++ -o xxx src -lPython)? Any Help?

dmoore

project -> build options -> link settings -> link libraries -> add

(if you are on win32, you may need to add something like c:\python25\libs at: project -> build options -> search directories -> linker)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

metalous

Quote from: dmoore on July 01, 2008, 03:16:29 PM
project -> build options -> link settings -> link libraries -> add

(if you are on win32, you may need to add something like c:\python25\libs at: project -> build options -> search directories -> linker)

Hi,

And if we are using Linux (Ubuntu 9.04) ? How can I use Python with Code::Blocks please?

Thx in advance.

dmoore

Quote from: metalous on April 20, 2010, 09:46:12 AM
Quote from: dmoore on July 01, 2008, 03:16:29 PM
project -> build options -> link settings -> link libraries -> add

(if you are on win32, you may need to add something like c:\python25\libs at: project -> build options -> search directories -> linker)

Hi,

And if we are using Linux (Ubuntu 9.04) ? How can I use Python with Code::Blocks please?

Thx in advance.

Do you want to:
a) compile C/C++ extensions to python using Code::Blocks; or
b) write and run python scripts in Code::Blocks?
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]