On Mar 20, 2004, at 11:53 PM, [EMAIL PROTECTED] wrote:
All -
Recently, I've been trying to compile a code written by a friend of mine; the code is in C.� I have checked the usual things:� The code can be compiled successfully with gcc; the compiler works as is on my machine; the code itself works, etc.� More particulars:
iBook (800 MHz PPC G3, 640 MB RAM) OS X, Version 10.3.3 fink Package manager version 0.18.3 fink Distribution version 0.7.0.cvs
When I try to compile the program with the command:
make -f xmk19.gcc
I get the result:
gcc -c -O3 xmk19.c
xmk19.c:6: header file 'X11/Xlib.h' not found
xmk19.c:7: header file 'X11/Xutil.h' not found
xmk19.c:8: header file 'X11/cursorfont.h' not found
xwins.h:5: header file 'X11/Xlib.h' not found
xwins.h:6: header file 'X11/Xutil.h' not found
xwins.h:7: header file 'X11/Xresource.h' not found
xwins.h:10: undefined type, found `Window'
xwins.h:11: undefined type, found `Window'
xwins.h:19: undefined type, found `Window'
xwins.h:26: undefined type, found `XContext'
app_glob.c:18: undefined type, found `Display'
app_glob.c:19: undefined type, found `GC'
app_glob.c:21: undefined type, found `XEvent'
app_glob.c:22: undefined type, found `XFontStruct'
app_glob.c:25: undefined type, found `Window'
app_glob.c:26: undefined type, found `XWindowAttributes'
xmk19.c:76: undefined type, found `XWMHints'
xmk19.c:77: undefined type, found `XColor'
xmk19.c:78: undefined type, found `Colormap'
xmk19.c:132: undefined type, found `Window'
xmk19.c:133: undefined type, found `Window'
xmk19.c:135: undefined type, found `Cursor'
xmk19.c:136: undefined type, found `Cursor'
xmk19.c:137: undefined type, found `Cursor'
xmk19.c:383: undefined type, found `Window'
xmk19.c:411: undefined type, found `Window'
xmk19.c:498: undefined type, found `Window'
xmk19.c:525: undefined type, found `Window'
xmk19.c:566: undefined type, found `Window'
xmk19.c:614: undefined type, found `Window'
xmk19.c:653: undefined type, found `Window'
xmk19.c:703: undefined type, found `Window'
xmk19.c:749: undefined type, found `Window'
xmk19.c:785: undefined type, found `Window'
xmk19.c:823: undefined type, found `Window'
xmk19.c:861: undefined type, found `Window'
xmk19.c:898: undefined type, found `Window'
xmk19.c:935: undefined type, found `Window'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make: *** [xmk19.o] Error 1
No files are created (i.e., no object files, no executables).
I successfully downloaded and installed the latest version of Apple's X11 window system (Version 1.0; XFree86 4.3.0).� The result is identical run either in the terminal generated by the terminal app or in the X Window terminal.
Thinking that I'd be able to solve the problem by reading the error, I searched for the X11 directory.� There isn't one. (!) I followed the suggestions on the fink website and have searched in what I think are the "normal" places to look for a solution with no luck.
I'd certainly appreciate whatever help is out there.� I can provide the C source code if that would help (it's not too big compressed with tar and gzip).
Many thanks,
Tony
Did you install the X11 SDK package? That's where all the headers are. (in /usr/X11R6/include/X11). It's on the XCode Tools disk.
-- Alexander K. Hansen Fink Documentarian Day Job: Levitated Dipole Experiment http://www.psfc.mit.edu/LDX
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
