Thread: SDL with g++

  1. #1
    uninteresting
    Join Date
    Jun 2002
    Posts
    66

    Question SDL with g++

    How can I get SDL to work with g++? In gcc it works fine, but when I try to compile something with g++.. well the compile is fine, but at runtime I get the following error message and it exits:

    Code:
    ./images: /usr/lib/libstdc++.so.5: version `CXXABI_1.2' not found (required by ./images)
    This is my compile line:

    Code:
    g++ -Wall `sdl-config --cflags` -o images images.cpp `sdl-config --libs` -lm
    Also, is there anything specific I need to pass when using ld to link, to get it to work? I haven't really messed with it, but I might.
    *** TITANIC has quit (Excess Flood)

  2. #2
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    that same thing happened to me when I tried to get a program working. I can't remember what program, I think xmms, but just go get that library. libstdc++.so.5 is what you need

  3. #3
    uninteresting
    Join Date
    Jun 2002
    Posts
    66
    I have it - it's in /usr/lib. Apparently it's not the right version or something?
    *** TITANIC has quit (Excess Flood)

  4. #4
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    try -L/usr/lib

  5. #5
    uninteresting
    Join Date
    Jun 2002
    Posts
    66
    It still gives the same error.
    *** TITANIC has quit (Excess Flood)

  6. #6
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    I remember what you need. If in gentoo emerge compat-libs if not just go donwload the rpm or deb file or what not. Let me know if that works

  7. #7
    uninteresting
    Join Date
    Jun 2002
    Posts
    66
    It's already merged, I even emerged it again just in case (was the latest version) and it didn't work .
    *** TITANIC has quit (Excess Flood)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SDL + Newbie
    By Livijn in forum Game Programming
    Replies: 7
    Last Post: 04-30-2007, 11:20 PM
  2. Problems compiling this SDL app
    By Rider in forum C++ Programming
    Replies: 3
    Last Post: 03-27-2007, 12:22 PM
  3. SDL and MinGW Studio
    By Vicious in forum Tech Board
    Replies: 0
    Last Post: 07-30-2004, 09:59 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. sdl in c++
    By Klinerr1 in forum C++ Programming
    Replies: 8
    Last Post: 07-07-2002, 07:46 AM