This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling win32 under Cygwin


I'm new to this list and to XConq - but I thought I'd pass along some
info I'd gleaned in trying to compile 7.4.1 under Cygwin.  I have a
question, too.

First of all - I tried compiling earlier today with the CVS sources
(co'ed 11/3/02, ~1pm)  Some notes:

* I needed to remove the reference to wconq.o in the win/ Makefile. 
>From the discussion list it looks like that was removed, but it wasn't
taken out of the makes.

* I added 'tkwin32.o' to the list of OBJs in the tcltk/ Makefile. 
Probably not such a good idea for the long haul (from reading the list,
this is supposed to be a generic area for tcl/tk materials, no?).  In
anycase, added it so I could compile.

* Speaking of the tkwin32 code :), it looks like the version in CVS has
funky linefeed/linereturn control character combinations.  I managed to
change it to the standard unix encoding (using UltraEdit - converted
from MAC to DOS, then DOS to UNIX - see the 'File/Conversions' menu). 
I was getting the error message, "tkwin32.c:1: `#include' expects
"FILENAME" or <FILENAME>".  No kidding, gcc, thanks so much for the
non-help :)

* ALSO speaking of the tkwin32 code, I commented out XSetTile, XFlush
and XSynchronize functions.  Again, according to the mail list, they're
not needed and were conflicting with their previous defs.


Now, here comes the question.  From what I understand, the tcltk
packages currently included with Cygwin are supposed to be "just fine"
out of the box.  In other words, we should be able to use those libs
just like any other library, without thinking too much about it.  I saw
the install notes regarding tcl/tk on cygwin but I, for one, would
rather not go through the rigormarole of compiling the tcl/tk packages
included with xconq, mostly because I'd rather not screw up the libs
included with Cygwin, but also because I can't get them to work :) 
Yet, when I try compiling against /usr/lib/libtcl80.a &/|
/usr/lib/libtk80.a, I see:

  /usr/lib/libcygwin.a(libcmain.o)(.text+0x81): undefined
  reference to `WinMain@16'
  collect2: ld returned 1 exit status

I could, of course, try to make the tcl/tk package included with xconq
work, but it seems like getting it to compile with the cygwin installed
libs would be a bigger win.

Any thoughts or news on this?  Does having the cygwin-installed tck/tk
libs mean the xconq tcl/tk sources may be made obsolete?

Thanks for the help.


-joe


__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]