Results 1 to 4 of 4

Thread: undefined reference to `__gcov_init' ...

  1. #1
    Peasant wwsoft's Avatar
    Join Date
    Apr 2010
    Location
    Here !
    Posts
    6

    Default undefined reference to `__gcov_init' ...

    Hello , I'm a semi-experienced C programmer. Iv been using SDL for a while and I decided to take a look at some other SDKs / Librays. I run linux so I had to compile CLanlib.

    when I try to compile the Basic2D example (or any other) it gives me this sort of error complaining about gcov ...

    Compile Errors For Basic 2D Example
    Code:
    # g++ compile flags #
    
    jason@jason-desktop:~/Desktop/clan/ClanLib-2.1.1/Examples/Basic2D$ make
    
    g++ `pkg-config --cflags clanApp-2.1 clanDisplay-2.1 clanCore-2.1 clanGL-2.1` -pthread basic2d.o -o basic2d `pkg-config --libs clanApp-2.1 clanDisplay-2.1 clanCore-2.1 clanGL-2.1` 
    
    # Errors #
    
    /usr/local/lib/libclan21GL.so: undefined reference to `__gcov_init'
    /usr/local/lib/libclan21GL.so: undefined reference to `__gcov_merge_add'
    collect2: ld returned 1 exit status
    make: *** [basic2d] Error 1

    google did not turn up much so I posted here.

    Thanks
    Last edited by wwsoft; 04-11-2010 at 01:20 PM. Reason: really cant spell ...

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    You know, with an attitude like that we will all be very happy if you find another SDK.

    Good bye!

  3. #3
    Peasant wwsoft's Avatar
    Join Date
    Apr 2010
    Location
    Here !
    Posts
    6

    Default

    sadly there seem to be no other SDKs , I got it to work right ... so Im going to remove that post. But I do wish the FAQs were a bit more extensive on troubleshooting ...

    Thanks For Pointing Out My Unprofessional Posts
    Another "wonderful" Clanlib User
    Last edited by wwsoft; 04-11-2010 at 01:42 PM.
    A common mistake that people make when trying to
    design something completely foolproof is to
    underestimate the ingenuity of complete fools.

    -Douglas Adams

  4. #4
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    We recently moved the documentation to a wiki, so it is easier for anyone to contribute documentation. Feel free to add your experience there so it is easier for the next guy.

Similar Threads

  1. undefined reference to `XConvertSelection'|
    By Koli14 in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 01-12-2010, 10:39 PM
  2. Why not pass GraphicContext by reference?
    By SandHawk in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 06-23-2009, 07:48 PM
  3. Minor reference error
    By mikael in forum Novashell Game Creation System
    Replies: 1
    Last Post: 07-09-2008, 11:12 PM
  4. CL_Slot undefined reference
    By karaman in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 05-30-2008, 11:00 AM
  5. ClanLib 0.8 and undefined references
    By glajan in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 09-03-2007, 09:33 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
  •