Hi to everybody,
I downloaded the whole zip from the GitHub of Yara and I was planning to
use the libyara.lib for an application I will develop using Visual Studio
2015 (C/C++).
I looked at the docs and it says I can build the .lib myself using Visual
Studio 2010 and compiling the project located into the \windows\yara folder.
I opened it with Visual C++ 2010 Express and I could not compile it (I am
working on Windows 8.1 x64) due to errors related to the pthread.h
identifiers. The pthread.h file itself is not present anywhere in my pc and
I don't know where to get it and what version I should take. Another thing
I have to mention is that I am compiling the solution as a Win32 type.
The errors I get are:
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(51): error
C2143: errore di sintassi: ';' mancante prima di '*'
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(51): error
C4430: identificatore di tipo mancante, verrà utilizzato int. Nota:
default-int non è più supportato in C++
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(51): error
C4430: identificatore di tipo mancante, verrà utilizzato int. Nota:
default-int non è più supportato in C++
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(55): error
C3861: 'pthread_self': identificatore non trovato
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(61): error
C3861: 'pthread_mutex_lock': identificatore non trovato
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(63): error
C3861: 'pthread_mutex_unlock': identificatore non trovato
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(107): error
C2440: '=': impossibile convertire da 'void *' a 'int *'
La conversione da 'void*' a puntatori a valori non 'void'
richiede un cast esplicito
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(109): error
C3861: 'pthread_mutex_init': identificatore non trovato
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(157): error
C3861: 'pthread_mutex_destroy': identificatore non trovato
Since the compiler is italian, I will try to translate as much as possible:
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(51): error
C2143: sintax error: ';' missing before '*'
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(51): error
C4430: missing type identifier, int will be used instead. Note: default-int
is no longer supported by C++
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(51): error
C4430: missing type identifier, int will be used instead. Note: default-int
is no longer supported by C++
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(55): error
C3861: 'pthread_self': identifier not found
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(61): error
C3861: 'pthread_mutex_lock': identifier not found
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(63): error
C3861: 'pthread_mutex_unlock': identifier not found
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(107): error
C2440: '=':impossible conversion from 'void *' to 'int *'
Conversion from 'void*' to pointers to values non 'void' requires
an explicit cast
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(109): error
C3861: 'pthread_mutex_init': identifier not found
c:\users\luca\desktop\yara-master\yara-master\libyara\libyara.c(157): error
C3861: 'pthread_mutex_destroy': identifier not found
Please help me to be able to compile the library and to be able to use it
for both 32 and 64 bit of my future application.
Thanks,
Luca
--
You received this message because you are subscribed to the Google Groups
"YARA" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.