On 2018-01-22 20:53+0200 Sergey Shcherbina wrote:


Hi!

I wanted to compile next example: x01c.c where are the possibilities to work 
with FOUR subplots.

What I received:

x01c.c: In function ‘plot2’:
x01c.c:323:5: warning: implicit declaration of function ‘plwid’ 
[-Wimplicit-function-declaration]
    plwid( 2 );
    ^~~~~
./x01c.o: In function `plot2':
x01c.c:(.text+0x5b6): undefined reference to `plwid'
x01c.c:(.text+0x5da): undefined reference to `plwid'
collect2: error: ld returned 1 exit status

After comments these unknown functions plwid in example x01c.c it was compiled 
successfully.

// Draw the line
   plcol0( 3 );
   //plwid( 2 );
   plline( 100, x, y );
   //plwid( 1 );

I think it is not important to work with plwid( 2 ) or without it.

If yes, I will continue to work with x01c.c without plwid(...).


Hi Sergey:

The plwid function has long been deprecated. During that time our
examples have been consistent (they use plwidth rather than plwid). So
somehow I believe you are attempting to compile really old examples
with a new PLplot version, and that is not possible for such
backwards-incompatible changes.

To avoid such backwards-incompatibility issues, I suggest you use the
latest PLplot version (currently 5.13.0, but the release of 5.14.0
should be happening fairly soon this year) including the compatible
set of examples that are distributed with that version.

Note, also that for our forthcoming release (5.14.0) plwid will be
changed from a deprecated status (only available if you use the
-DPL_DEPRECATED=ON option to cmake) to completely removed status
because it has been deprecated for such a long time.

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); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); 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
__________________________

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to