User forums > Using Code::Blocks

How to use Shared Library in CodeBlocks?

(1/1)

rubiktubik:
Hi,

I want to write Clutter Application(http://en.wikipedia.org/wiki/Clutter_(toolkit) ) with CodeBlocks.
I am downloaded and compiled the source of clutter and get a "libclutter-glx-1.0.so"

What should i do to use the library in CodeBlocks?

What i have done:

* included the library in the linker config of CodeBlocks
* then tried to use it with: #include "clutter/clutter.h"
* But the Compiler shows: /home/michi/C-C++/Clutter/main.c|2|Fehler: clutter/clutter.h: No such file or directory|

Can someone help?


Regards
rubiktubik

MortenMacFly:

--- Quote from: rubiktubik on August 12, 2009, 07:45:42 pm ---
* included the library in the linker config of CodeBlocks
* then tried to use it with: #include "clutter/clutter.h"
* But the Compiler shows: /home/michi/C-C++/Clutter/main.c|2|Fehler: clutter/clutter.h: No such file or directory|

--- End quote ---
Add the path to the clutter lib to the compiler's directory, too.

Besides: This is likely to become a general programming question. Be careful as this thread might get locked as it would violate our forum rules. I suggest you take a book about C++ basics including the description of how a compiler/linker works and read.

Navigation

[0] Message Index

Go to full version