From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075319906655.tru64-unix-managers.marc@archive.invalid> From: roddy () visual-ra ! swmed ! edu (Roddy McColl) Date: Mon, 22 May 1995 22:29:12 +0000 To: tru64-unix-managers Subject: problems compiling X11 code under OSF/1 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075319906655 I am running AVS v5.01 under OSF/1 v1.3, and I have run into an annoying problem with X11. This may be just an X probkem but its on an Alpha so here goes ... if my code looks like this ... #include #include . . . main() { . . } and I compile with cc -Dstd -Dunix -DNeedFunctionPrototypes -DXLIB_ILLEGAL_ACCESS -DUSE_FILE_UTILS (using defines which are included in the AVS Makeinclude file) then the compilation will fail with repeated declaration errors in Xlibint.h (such as "typedef struct _XFC *GC;") Does anyone know/understand the purpose of the -DXLIB_ILLEGAL_ACCESS, and/or how to work around it? If I turn it off, my AVS/X11 module consistently dies during a call to XGetWindowProperties(). But with it in, I keep getting errors during calls to XQueryTree(). My real purpose in calling Xlibint.h is to include the source to XQueryTree() so I can see where it failing. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Roddy McColl PhD Assistant Professor of Radiology Radiology Imaging Center UT Southwestern Medical Center at Dallas 5323 Harry Hines Blvd Dallas TX 75235-9058 (214) 648-2910 (214) 648-4538 FAX roddy@mri.swmed.edu http://www-mri.swmed.edu/homes/roddy.html -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-