Howdy I am trying to compile a portable diffraction software sweet from
NIST and thought it would be a snap as I have tcltk installed from
fink. I hacked the make file included for linux shown below and it
almost worked -- the problem seems to be with the headers in tk.h
specifically symbols like /sw/include/tk.h:671: undefined type, found
`XWindowChanges' -- where are these defined? Thanks for any help on
this.
[Quark:~/Ports/logic] paulfons% cat Make_linux
########################################################################
# Linux x86 #
#############
LIB = ../logic.a
FC = g77 -fno-backslash
LOCALFC = g77
CC = gcc
F2CLIB = -lg2c
# use next line for debugging only
# DBG= -g -Wall
# options for C <-> Fortran naming
NAMEOPTION = -DTWOSCORE -DBIT32
CFLAGS = $(DBG) $(NAMEOPTION) -c
FFLAGS = $(DBG) -c
# shared library options
SHSUFFIX = so
# command to build shared libraries
SHARECMD = $(FC) -shared
# libraries needed to build shared libraries
SHARELIB =
# locations for TCL include files -- system dependent
TCL_CFLAGS = -I/usr/include/tcl -I/usr/local/include -I/sw/include
# libraries needed for linking
TCLLIBS = -ltcl -lm -ldl -lc -lgcc $(F2CLIB)
TKLIBS = -ltk -ltcl -lm -ldl -lc -lgcc -L/usr/X11R6/lib -lX11 $(F2CLIB)
#
RANLIB = ranlib
########################################################################
# change this if -D is not the command line option to define
preprocessor
# options from the command line (it is needed to include Tk into
logic_shell.c)
TK_CFLAGS = -DLOGIC_TK
#
Build sequence ...
make
gcc -o tk_logic.o -DTWOSCORE -DBIT32 -c -I/usr/include/tcl
-I/usr/local/include -I/sw/include -DLOGIC_TK logic_sh.c
/sw/include/tk.h:83: header file 'X11/Xlib.h' not found
/sw/include/tk.h:581: undefined type, found `Bool'
/sw/include/tk.h:582: undefined type, found `Display'
/sw/include/tk.h:583: undefined type, found `Window'
/sw/include/tk.h:584: undefined type, found `Window'
/sw/include/tk.h:585: undefined type, found `Window'
/sw/include/tk.h:586: undefined type, found `Time'
/sw/include/tk.h:591: undefined type, found `Bool'
/sw/include/tk.h:597: undefined type, found `Bool'
/sw/include/tk.h:598: undefined type, found `Display'
/sw/include/tk.h:599: undefined type, found `Window'
/sw/include/tk.h:657: undefined type, found `Display'
/sw/include/tk.h:660: undefined type, found `Visual'
/sw/include/tk.h:662: undefined type, found `Window'
/sw/include/tk.h:671: undefined type, found `XWindowChanges'
/sw/include/tk.h:673: undefined type, found `XSetWindowAttributes'
... lots of similar errors on different lines
/sw/include/tkDecls.h:1068: undefined type, found `GC'
/sw/include/tkDecls.h:1070: undefined type, found `GC'
/sw/include/tkDecls.h:1072: undefined type, found `Pixmap'
/sw/include/tkDecls.h:1073: undefined type, found `XColor'
/sw/include/tkDecls.h:1077: undefined type, found `Pixmap'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
make[1]: *** [tk_logic.o] Error 1
make: *** [logic_shell] Error 2
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users
- Re: [Fink-users] tcl-related include file problem Dr. Paul Fons
- Re: [Fink-users] tcl-related include file problem Martin Costabel
