News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How to use Shared Library in CodeBlocks?

Started by rubiktubik, August 12, 2009, 07:45:42 PM

Previous topic - Next topic

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|
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]