On 2009-02-28 03:20, Nathan Brink wrote:
> Dennis Peterson wrote:
>   
>> Regarding stdint.h, I'm surprised the code linked without it. I can't expect
>> this to be the only surprise.
>>    
>>     

I removed the stdint.h include now.
I only tested clamdtop on Solaris 10/x86, I don't have Solaris 9.
If it linked I don't expect any other problems, except maybe if the
version of ncurses you have is too old,
and behaves differently (I developed it using ncurses 5.7). But you'll
see that as soon as you start it.

> stdint.h and other includes like stdio.h, unistd.h all define things 
> found in the standard C library. GCC always links your program against 
> the standard C library and even has some built-in replacements/support 
> for functions in libc. In fact, IIRC, GCC will complain about improper 
> use of certain libc functions even when the proper header file isn't 
> included. I think that gcc-4.3.1 will require you to #include stdint.h 
> but gcc-3.* implicitly defines things in stdint.h... And stdint.h 
> defines typedefs, not functions that the program needs to link against.
> I am guessing you are missing stdint.h because you have an old libc. 
> This is because of the overall age of the OS you are using which has 
> already been mentioned.

Actually stdint.h was not even needed, I only use size_t which is
defined in stdlib.h;
I don't use uint32_t-like types that are in stdint.h.

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to