[clamav-users] Building issues with libclamav

Michael Mckeown michaelmckeown at outlook.com
Wed Nov 2 20:14:16 UTC 2016


Using VS2015, errors:

> 1>c:\...\visual studio 
> 2015\projects\clamav-0.99.2\win32\3rdparty\pthreads\ptw32_relmillisecs.c(80): 
> error C2037: left of 'tv_sec' specifies undefined struct/union 'timespec'
> 1>c:\...\visual studio 
> 2015\projects\clamav-0.99.2\win32\3rdparty\pthreads\ptw32_relmillisecs.c(81): 
> error C2037: left of 'tv_nsec' specifies undefined struct/union 'timespec'
> 1>c:\...\visual studio 
> 2015\projects\clamav-0.99.2\win32\3rdparty\pthreads\pthread_delay_np.c(96): 
> error C2037: left of 'tv_sec' specifies undefined struct/union 'timespec'
> 1>c:\...\visual studio 
> 2015\projects\clamav-0.99.2\win32\3rdparty\pthreads\pthread_delay_np.c(96): 
> error C2037: left of 'tv_nsec' specifies undefined struct/union 'timespec'
> 1>c:\...\visual studio 
> 2015\projects\clamav-0.99.2\win32\3rdparty\pthreads\pthread_delay_np.c(105): 
> error C2037: left of 'tv_sec' specifies undefined struct/union 'timespec'
> 1>c:\...\visual studio 
> 2015\projects\clamav-0.99.2\win32\3rdparty\pthreads\pthread_delay_np.c(108): 
> error C2037: left of 'tv_nsec' specifies undefined struct/union 'timespec'

only building libclamav and using visual studio 2013 as the platform 
toolset as 2015 gives lots of the following:

> fatal error C1189: #error: Macro definition of snprintf conflicts with 
> Standard Library function declaration

Can anyone help me out with this?

Also when I eventually get this working must it be a .dll thats built 
rather than a .lib?

Thank you.


More information about the clamav-users mailing list