Results 1 to 3 of 3

Thread: Linking Problems.

  1. #1

    Default Linking Problems.

    First stop, great work on ClanLib! Very happy after some early experimenting with it.

    Now, I'm having a linking problem under Ubuntu 7.10 with a simple Hello-World program. This program compiles successfully and runs under Windows. This error has cropped up both in Kdevelop and Eclipse, so I think it's something to do with the linker settings or my system's environment in general. Here's relevant the output.

    /bin/bash ../libtool --tag=CXX --mode=link g++ -O0 -g3 -o clantest2 clantest2.o -lclanCore -lclanApp -lclanDisplay -lclanGL -lclanSignals -lclanSound
    g++ -O0 -g3 -o clantest2 clantest2.o -lclanCore -lclanApp -lclanDisplay -lclanGL -lclanSignals -lclanSound
    clantest2.o: In function `__static_initialization_and_destruction_0':
    /home/devuser/Projects/ClanTest2/src/clantest2.cpp:56: undefined reference to `HelloW::HelloW()'
    clantest2.o: In function `__tcf_1':
    /home/devuser/Projects/ClanTest2/src/clantest2.cpp:56: undefined reference to `HelloW::~HelloW()'
    collect2: ld returned 1 exit status


    Also, for information, clanlib was configured with --enable-clanGL and no other flags, before I built it. I've tried switching between gcc/g++ but that doesn't seem to change anything.

    Any help would be much appreciated.
    Thanks and Regards,

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

    Default

    I assume that you are using ClanLib 0.8 (not older)

    Have you tried compiling the Examples/Basic2D example?

    If that works, try manually compiling your program by using its makefile

  3. #3

    Default

    The examples to indeed compile, and I've now diagnosed a problem with my Constructor that for some reason Visual Studio ignores.

    Thanks for the help.

Similar Threads

  1. Help! linking error
    By thfai2000 in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 10-30-2008, 04:30 AM
  2. Compiling problems
    By nerull in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 10-03-2007, 05:36 AM
  3. Linking errors with VC++ Express 2005
    By lixopmstp in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 09-07-2007, 08:59 PM
  4. Top down RPG example problems
    By DarthDie in forum Novashell Game Creation System
    Replies: 4
    Last Post: 05-09-2007, 01:49 AM
  5. Some problems.
    By Uhfgood in forum Novashell Game Creation System
    Replies: 5
    Last Post: 03-25-2007, 07:26 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
  •