C and Tk

C

CBFalconer

Jack said:
Indeed, and yet I am about to award you the honor of a non-standard
expression, albeit the standard involved is not that of the C
language:

#plonk#

I could put up with a reasonable modicum of his foolish insistence
on being off-topic, but I can't put up with his simultaneous
efforts to foul all quote manipulating software. I think he is
gradually working his way into speaking to the great void.
 
L

Lawrence Kirby

On Tue, 28 Jun 2005 17:05:17 +0000, Walter Roberson wrote:

....
I'm not a sharp enough language-lawyer to resolve this question:

When the C89 standard admits of something being a "common extension"
then is a compiler "non-compliant" for implementing that extension
(e.g., due to potential clashes with use of those words in code)?

The C standard doesn't recognise compilers as such, it talks about
"implementations". An implementation includes everything that can affect
the behaviour of a program, the compiler, libraries, linker, runtime
environment etc., and in particular the configuration data for these. So
by changing the command line options when running a compiler you are
creating a different implementation. A compiler (in conjunction with
everything else) may provide a comforming implementation wih one set of
command line options but not with another, which is perfectly reasonable.
If so, would it be sufficient for the compiler to provide a means to
turn off recognizition of the extension?

The concept of a "compliant compiler" isn't a standard one. It probably
means a compiler that can be part of a conforming implementation when
given appropriate options, but it is an informal concept.

Lawrence
 
G

Guest

Date: Mon, 27 Jun 2005 19:48:32 -0400
From: Penguin_X <[email protected]>
Newsgroups: comp.lang.c
Subject: C and Tk

Hi.

I'm using Tk with Perl. I've take a look on google and many forum about
Tk and C relationship. Is there any way to use it with C ? I would
prefer code compiled Tk programs than interpreted one.

Thank You !

You have a number of choices ...

mktclapp will wrap tck/tk scripts as C based source which can be
compiled directly into an executeable.

http://www.hwaci.com

You can write to the TK C library, as Tk is implemented in C as a
library specifically for embedding, and was designed as such.

You can execute tk widgets as code snippets directly from your
application using tcl_eval() ...

pick any one or more solution and you are away to the races ...

Cheers,
Rob Sciuk
 
D

Dave Thompson

Or even johnny-come-early languages like Fortran.

Which is sort-of both because Fortran 2003 (actually approved in 2004)
for the first time _standardizes_ a binding to C. (Many, probably
most, compilers already had the functionality, but using differing
syntaxes, hence the benefit of standardization.)

- David.Thompson1 at worldnet.att.net
 
L

Larry Virden

I would prefer code compiled Tk programs than interpreted one.

Tk is not a truly stand alone GUI library. It expects to interact with
some kind of interpreter to perform many of its functions. Perl and
Tcl are two interpreters whose developers have created the necessary
libraries.

However, Tk has from the beginning been used in situations where the
majority of the time critical work is done in C, while the interpreter,
which ever one selected, works along side the application.

You might read over some of the white papers at http://www.tcl.tk/ for
more details.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,166
Messages
2,570,907
Members
47,448
Latest member
DeanaQ4445

Latest Threads

Top