Results 1 to 3 of 3

Thread: Compiling an example with Code::Blocks

  1. #1
    Serf easy's Avatar
    Join Date
    Aug 2011
    Location
    Hungary
    Posts
    4

    Default Compiling an example with Code::Blocks

    Hello again!

    I've compiled ClanLib 2.3.1 with no problem using only GCC and the provided makefiles that comes with the SDK.

    However, yesterday I wanted to create a new project and compile it inside Code::Blocks IDE, but unfortunately it didn't go well. Here's what I did:

    - I've created a new project and added test.cpp and test.h from the Tests/Display/Fullscreen directory. (I've renamed test.cpp to main.cpp)
    - Then I've set the build options (for both release and debug): I've pointed C::B to where the search directories are (/usr/include/ClanLib-2.3/) and I've also set where the libs are (/usr/lib).
    - In the linker settings, I've linked: A) Nothing, B) all the ClanLib shared libraries with path (e.g. /usr/lib/libclan23App.so), C) all the ClanLib shared libraries without path (e.g. libclan23App.so), D) bare library names from the makefiles (e.g. clanCore).

    Well, none of these worked, unfortunately. It always complains about the shared pointers:
    Build log: http://pastebin.com/3cR7bzDU
    Build messages: http://pastebin.com/ibn2QjFp

    Is there a solution for this? I mean it's just strange that the library sources compiles with GCC and then I cannot use the compiled library from an IDE?

    Maybe you know the answer?
    Cheers,
    easy

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588
    Last edited by sphair; 10-21-2011 at 07:59 AM.

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

Similar Threads

  1. Debian Code::Blocks Setting
    By zergling in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 09-27-2010, 09:32 AM
  2. Code::Blocks
    By ART_Adventures in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 01-14-2010, 12:00 AM
  3. ClanLib 8.1 Code::Blocks
    By ngates87 in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 06-13-2008, 10:56 AM
  4. Code::blocks Config file?
    By Mersel in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 04-09-2008, 07:27 PM
  5. ClanLib and Code::Blocks
    By gmatt in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 09-17-2007, 01:55 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •