0

I am trying to use this library https://github.com/lemire/SIMDCompressionAndIntersection/ with Visual Studio 2012 but I am getting a few compilation errors.

Headers #include <sys/resource.h> #include <sys/time.h> and #include <sys/mman.h> doesn't exist. I can simply remove them.

After this I am getting errors in many lines which have this format:

__attribute__((const))
inline uint32_t gccbits(const uint32_t v) {
    return v == 0 ? 0 : 32 - __builtin_clz(v);
}

missing type specifier - int assumed. Note: C++ does not support default-int

Does anyone know how to use this library with Visual Studio 2012?

edit: I am compiling this in G++. In terminal I type make example and then ./example. I get a segfault before any output. Anyone know what is wrong?

SuperHeroY
  • 169
  • 1
  • 5

1 Answers1

3

From the Requirements section:

A recent GCC (4.7 or better), Clang or Intel compiler.

...

Tested on Linux and MacOS. It should be portable to Windows and other platforms.

Good luck with your port.

Nemo
  • 70,042
  • 10
  • 116
  • 153