Re: Building a windows app with Tcl/Tk includes X.h
- From: George Peter Staplin <georgepsSPAMMENOT@xxxxxxxxxxxx>
- Date: Fri, 1 Feb 2008 18:03:16 +0000 (UTC)
SimonG wrote:
I'm building a windows app with Tcl and Tk embedded. Visual Studio is
generating the following error:
c:\Tcl\include\X11\X.h(51) : error C2371: 'Font' : redefinition;
different basic types
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include
\comdef.h(305) : see declaration of 'Font'
It seems to me that it shouldn't be trying to include anything from
X11. Is there a #define I should pass to the compiler, or #include
more than just "tk.h" ? I'm using 8.4 with 8.5 overlayed (both from
ActiveState).
Thanks,
Simon Geard
Tk uses the header files for X11 in Win32 for its X emulation layer.
This can be problematic, as you seem to have found.
I'm not aware of a solution to your Font type problem. Most of the Tk
developers and ActiveState are using older compilers, for backwards
compatibility reasons.
Pat Thoyts may have some advice, and I'll point out this thread to him.
He seems to be the Win32 expert maintainer, and did a lot of work on
Tile/Ttk's Win32 support.
George
.
- Follow-Ups:
- Re: Building a windows app with Tcl/Tk includes X.h
- From: Pat Thoyts
- Re: Building a windows app with Tcl/Tk includes X.h
- Prev by Date: Re: Why doesn't foreach return a value
- Next by Date: Re: 3Dcanvas status
- Previous by thread: BWidget Listbox/ComboBox & threads bug
- Next by thread: Re: Building a windows app with Tcl/Tk includes X.h
- Index(es):
Relevant Pages
|