antonmks / Alenka

GPU database engine
Other
1.17k stars 120 forks source link

identifier "atoll" is undefined #11

Closed agnius-vasiliauskas closed 11 years ago

agnius-vasiliauskas commented 11 years ago

I'm getting error "identifier "atoll" is undefined" in file cm.cu. I have traced problem to this code:

`#ifdef _WIN64

define atoll(S) _atoi64(S)

endif`

and I'm building on Win32 - probably that is why such problem. I've re-coded it as:

`#ifdef _WIN64

define atoll(S) _atoi64(S)

else

define atoll(S) atoi(S)

endif

`

and at least it builds on 32bit system. But i feel that it can break your code somewhere else, so i'm not sure is this hack really solves problem for 32bit machine.

antonmks commented 11 years ago

You need to compile Alenka as 64bit executable. It won't work on a 32bit platforms.

sam1988 commented 11 years ago

in compress.cu file: error : uninitialized_host_allocator is not a template

it seems the struct uninitialized_host_allocator is defined in cm.h and compress.cu didn't have include file #include"cm.h"

antonmks commented 11 years ago

Seems to compile fine here, but just in case, I will include the header file cm.h into compress.cu

Thank you !