From: Alan W. I. <ir...@be...> - 2006-03-08 20:10:18
|
On 2006-03-08 10:07+0100 Xavier Chardon wrote: > Hi all, > > I downloaded and installed plplot 5.5.3. I can successfully compile and > run the examples. So I tried to use plplot from a bigger program. > > However, I get a segmentation fault when trying to run my program. With > the debugger, I noticed that the problem was coming from the function: > > opendir(drvdir), in plcore.c, line 2090. > The char* drvdir has the proper value (/usr/local/lib/plplot5.5.3/driversd). > > This function is called inside plinit(). > > I tried to configure plplot with --disable-dyndrivers, but nothing changed. > > Does anybody have an idea?? Hi Xavier: Since the examples work and your programme does not, I suspect you are not linking your programme in the same way the examples are linked. Follow what is done in /usr/local/share/plplot5.5.3/examples/c/Makefile to build the examples and your programme should be okay. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 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 Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |