Error with embedded TK and TCL 8.0 
Author Message
 Error with embedded TK and TCL 8.0

Hi !
i tried to compile one of the excercises of the documentation of et2c
(rev. 8.0b2) and im using tcl/tk 8.0 .
i preprocessed the source file and tried to compile the resulting c-file
(test.c).

gcc test.c et.o -ltk8.0 -ltcl8.0 -lX11 -lm

But instead of an executable file i just get the following messages:

/usr/local/lib/libtcl8.0.so: undefined reference to `dlerror'
/usr/local/lib/libtcl8.0.so: undefined reference to `dlopen'
/usr/local/lib/libtcl8.0.so: undefined reference to `dlsym'

does anybody know how to avoid them ?

sincerly
Martin Schreiber



Sun, 12 Mar 2000 03:00:00 GMT  
 Error with embedded TK and TCL 8.0

Quote:

> gcc test.c et.o -ltk8.0 -ltcl8.0 -lX11 -lm

> But instead of an executable file i just get the following messages:

> /usr/local/lib/libtcl8.0.so: undefined reference to `dlerror'
> /usr/local/lib/libtcl8.0.so: undefined reference to `dlopen'
> /usr/local/lib/libtcl8.0.so: undefined reference to `dlsym'

> does anybody know how to avoid them ?

Add a "-ldl" to the list of libraries on the "gcc" line above.

--



Sun, 12 Mar 2000 03:00:00 GMT  
 Error with embedded TK and TCL 8.0

Add -ldl to the end of the link step (i.e. after -ltk8.0 -ltcl8.0...).



Fri, 24 Mar 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. embedded window possible in Tcl/Tk 8.0 ?

2. Mixing Xevents and Tcl/Tk events with tcl/tk version 8.0/8.2

3. tcl/tk 8.0 problem with Windows app that calls tcl/tk script

4. Problems with HP-UX 8.0 and Tcl/TK 8.0

5. Problem with Tcl/Tk 8.0 "X Error of failed request: BadWindow (invalid Window parameter)

6. tcl/tk/tix 8.0 X-error?

7. Weird Error. Tcl/Tk/ET 8.0

8. ANNOUNCE: Tcl 8.0 and Tk 8.0 releases

9. Bug Found in Tcl 8.0/Tk 8.0

10. Tcl/Tk 8.0 , Error in startup script

11. Is Tcl-DP for tcl/tk 8.0 available?

12. Hypothe'tcl's in Tcl/Tk 8.0 and Plugins

 

 
Powered by phpBB® Forum Software