Alan,

Thanks! I only have $prefix/share/plplot$version/examples/tcl/ so I test
according to your second suggestion. I copied the makefile and xtk04.c to a
local folder. Then I got the following error message for missing litcl3.2.
itcl 3.2.1.4 was installed.

debian:~/test$ make
/usr/bin/gcc xtk01.c -o xtk01  `PKG_CONFIG_PATH=/usr/lib/pkgconfig
pkg-config --
cflags --libs
plplotd-tcl`
xtk01.c: In function 'main':
xtk01.c:42: warning: passing argument 2 of 'pltkMain' from incompatible poin
ter type
/usr/bin/ld: cannot find -litcl3.2
collect2: ld returned 1 exit status
make: *** [xtk01] Error 1

Frank

On 3/21/08, Alan W. Irwin <[EMAIL PROTECTED]> wrote:
>
> On 2008-03-20 19:04-0700 tex c214 wrote:
>
> > Hi,
> >
> > I am using Tcl and plplot to draw large amount of data. The data will be
> > processed in C and I am trying to compile the example codes xtk04.cshows
> > how to work with matrix in Tcl and shared it with C. The problem is that
> I
> > can't compile xtk04.c. I am using Tcl 8.5 and plplot 5.6.10 on Debian 4.
> I
> > am using the following command when compiling xtk04.c. "gcc
> > -I/usr/include/tcl -I/usr/include/plplot xtk04.c -ltcl". Does anyone
> here
> > succeed in get the code running?
>
>
> Try compiling xtk04.c using the instructions provided in the appropriate
> Makefile in the install tree
> for PLplot.  If you are compiling your own version that would be in the
> directory
>
> $prefix/share/plplot$version/examples/tk/
>
> where $prefix is your installation prefix and $version is the version of
> PLplot your are building.  I second Arjen's suggestion that you use the
> latest version of PLplot for your builds, if that is what you are doing.
>
> If you are just using the Debian package for PLplot called plplot-tcl-dev,
> the Makefile with instructions on how to compile xtk04.c should be in
> /usr/share/doc/libplplot9/examples/tk/.
>
>
> Alan
> __________________________
> Alan W. Irwin
>
> Astronomical research affiliation with Department of Physics and
> Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
>
> Programming affiliations with the FreeEOS equation-of-state implementation
> for stellar interiors (freeeos.sf.net); PLplot scientific plotting
> software
> package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
> Linux Links project (loll.sf.net); and the Linux Brochure Project
> (lbproject.sf.net).
> __________________________
>
> Linux-powered Science
> __________________________
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to