Author Topic: Using other headers  (Read 2620 times)

Offline stachu

  • Single posting newcomer
  • *
  • Posts: 2
Using other headers
« 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...

« Last Edit: February 17, 2010, 11:44:36 pm by stachu »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Using other headers
« Reply #1 on: February 18, 2010, 12:32:00 am »
Do you have project? Seems you don't, why no make one?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stachu

  • Single posting newcomer
  • *
  • Posts: 2
Re: Using other headers
« Reply #2 on: February 18, 2010, 01:24:25 am »
I do have a project

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Using other headers
« Reply #3 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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]