problems compiling tk 8.2.3

problems compiling tk 8.2.3

Post by achet.. » Thu, 06 Jan 2000 04:00:00

Hi All!

While linking tk 8.2.3 ld fails with error:
ld: fatal: relocations remain against allocatable but non-writable

What is wrong?

Sent via
Before you buy.


1. Problem compiling tk stuff

Hi !

I have a problem compiling C programs using TK.
#include <stdio.h>
#include <tcl.h>
#include <tk.h>
#include <dlfcn.h>

int main(argc, argv)
int argc;
char **argv;
        Tk_Window mainWindow;
        Tcl_Interp *interp;
        static char *display = NULL;

        interp = Tcl_CreateInterp();

        mainWindow = Tk_CreateMainWindow(interp, display, argv[0], "Tk");


When I try to compile the program with 'gcc xxx.c -ltck -ltk -lX11 -lm -ldl',
I get a 'undefined reference to  k_CreateMainWindow'

What's wrong ??? Any ideas ?


2. TCP Sequence Number Prediction

3. libX11 Problems compiling Tk 4.2

4. efs140mp.Z

5. Problems compiling c program w/ TK

6. Help Newbie 2 Hard Drives

7. Tcl/Tk compile problem. need dlfcn.h!!

8. Configure Linux Server to be a gateway for ICQ w98 clients

9. TK/tcl gurus: wrong version of Tk loaded (3.6): need 4.x?

10. Compiling Tk 4.0

11. Trouble Compiling tcl/tk program under RedHat 4.1

12. compiling Tk-3.2 under Solaris 2.x with gcc-2.3.3

13. How to compile a static version of a tck/tk app (tkdesk)