On Wednesday 14 January 2004 16:10, Rafael Laboissiere wrote:
| * Andrew Ross <andrewr@...> [2004-01-14 14:41]:
| > Ahh. Adding -lpthread to the link line of my program seem's to
| > solve the problem.
| > So is it because the pthread library is not being loaded until the
| > xwin driver is loaded then?
| I do not know the reason, but Joao already noticed that linking the
| applications with -lpthread is necessary.
The reason seems to be that what used to be global variables, such as
errno, must now be local to the thread. It looks like the pthread
library redefines such variables. I'm not sure how.
| > I'm not using plplot-config, but a quick test seems to suggest that
| > plplot-config is not outputting the -lpthread option on the link
| > line.
| Neither is 'pkg-config --libs plplotd'. I will fix this. BTW, since
| you are using Debian, you might be interested in using pkg-config.
| Just configure --with-pkg-config. See examples in
| examples/c/Makefile.examples. You will need the pkg-config package
| (apt-get install pkg-config).