Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: link problems

On Fri, Oct 11, 2013 at 10:14:55AM +0200, Martin Husemann wrote:
> Do we have some simple test case for the whole issue?

Here is a simple test case, based on the curses abuse Roy complained about:

#include <stdio.h>
#include <term.h>

int main(int argc, char **argv)
        int err = 0;
        setupterm(NULL, fileno(stdout), &err);
        printf("my term: %s\n", termname());
        return 0;

Compile with:

        cc -Wall -O2 test.c -lcurses

        cc -Wall -O2 test.c -Wl,--copy-dt-needed -lcurses


Home | Main Index | Thread Index | Old Index