Code::Blocks Forums

User forums => Help => Topic started by: stachu on February 17, 2010, 11:42:16 pm

Title: Using other headers
Post by: stachu on February 17, 2010, 11:42:16 pm
hello

i use #include <libplayercore/playercore.h> in my project.

To compile my project, i changed properties of 'main.cpp' (this file includes libplayercore/playercore.h).

in window
 main.cpp > properties > advanced > Custom build
 I put:
$compiler -Wall -fpic -g3 `pkg-config --cflags playercore` -c $file -o $object

and it worked for me.

Is there better way do to this?

I would like to use code cmpletion for libplayercore/playercore.h, but it doesn't work right now...

Title: Re: Using other headers
Post by: oBFusCATed on February 18, 2010, 12:32:00 am
Do you have project? Seems you don't, why no make one?
Title: Re: Using other headers
Post by: stachu on February 18, 2010, 01:24:25 am
I do have a project
Title: Re: Using other headers
Post by: oBFusCATed on February 18, 2010, 01:54:25 am
So why don't you use project -> build options -> compiler -> other options?

For more info read the manual, please: http://www.codeblocks.org/user-manual