Yes, I use -Wall -W and -pedantic compiling options, and there aren't any problems, in compiling time. Ok, I have read the 3.x API and you have reason, it's easier than 2.x. but in the computer is installed the older version. I accept more suggestions... If I can't find the problem I'll change the version and I'll do a new code. Thanks for your helpful information. > Date: Tue, 11 Nov 2008 10:31:55 +0100 > From: khali at linux-fr.org > To: 513172 at unizar.es > CC: lm-sensors at lm-sensors.org > Subject: Re: a problem with lm-sensor 2.10.7. > > Hi Sergio, > > On Mon, 10 Nov 2008 19:20:05 +0100, Sergio Gutierrez Verde wrote: > > I have a problem using a function of lm-sensors 2.10.7. > > > > In the next extract of code I try to get the CPU TEMP of a > > certain chip. But when 'sensors_get_feature' is called, > > there is a problem, a Segmentation fault. > > I also try to use the most part of the code of lm-sensors > > 2.10.7 (like main.c, chips.c and so on), but the problem persists. > > The chip and the sensors are the right. > > If I can allow myself a side comment, writing code for libsensors 2.x > today is a bit odd. The libsensors 3.x API is perfectly stable by now > and it is much better than 2.x so you should really use 3.x for new > applications. > > > Could anyone find the wrong in my code? > > Did you try building it with -Wall -W? In many cases it is sufficient > to point you to the problematic code. > > -- > Jean Delvare _________________________________________________________________ Los m?s de lo m?s, Especial Rankings http://events.es.msn.com/dinero/listas/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20081111/2129d0b4/attachment.html