Thread: Distributing C++ Applications

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Distributing C++ Applications

    Hey all,

    Increasingly, I've found that older versions of glibc and libstdc++ are incompatible with newer versions and cause random crashes in an application.

    One solution to this problem is to compile natively on multiple systems (as do most other players in the OpenSource world), and hence distribute multiple binaries. My application is not GNU GPL compatible so there are no source distributions.

    Now, my question is that can I distribute binaries bundled with the C/C++ runtime itself so that the problem of distributing multiple binaries doesn't arise. From StackOverflow I found out that this is possible (Linking Statically with glibc and libstdc++ - Stack Overflow), but when I try to run the application I get a whole lot of RTLD errors:

    relocation error: ./bin/libc.so.6: symbol _dl_tls_get_addr_soft, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference

    Is there any work-around to this? What standards should be followed when distributing C/C++ runtimes?
    Last edited by Sayan-Chaliha; 07-19-2010 at 11:34 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling C in Visual Studio 2005
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-16-2009, 04:25 AM
  2. Get Installed applications list and applications activity
    By arunarora in forum C++ Programming
    Replies: 5
    Last Post: 05-25-2009, 09:41 AM
  3. A question about windows programming
    By Hussain Hani in forum Windows Programming
    Replies: 16
    Last Post: 05-23-2007, 07:38 AM
  4. Distributing MFC Applications
    By WiKiDJeFF in forum Windows Programming
    Replies: 4
    Last Post: 05-01-2003, 05:39 PM

Tags for this Thread