I am trying to use CMake to build a very simple CUDA program.  I am seeing the 
following errors when I try to build:

> /usr/include/c++/4.2.1/new(95): error: first parameter of allocation function 
> must be of type "size_t"
> /usr/include/c++/4.2.1/new(96): error: first parameter of allocation function 
> must be of type "size_t"
> /usr/include/c++/4.2.1/new(99): error: first parameter of allocation function 
> must be of type "size_t"
> /usr/include/c++/4.2.1/new(100): error: first parameter of allocation 
> function must be of type "size_t"
> /usr/include/c++/4.2.1/new(105): error: first parameter of allocation 
> function must be of type "size_t"
> /usr/include/c++/4.2.1/new(106): error: first parameter of allocation 
> function must be of type "size_t"
> 
> 6 errors detected in the compilation of 
> "/tmp/tmpxft_0000284b_00000000-4_device.cpp1.ii".
> CMake Error at CMakeFiles/test_generated_device.cu.o.cmake:235 (message):
>   Error generating file
>   
> /Users/u0033394/Downloads/examples/cpp_integration/build/./test_generated_device.cu.o

Any ideas on what would be causing this?

My CMakeLists.txt file looks like:

> cmake_minimum_required(VERSION 2.6)
> project( JCSCudaTest CXX )
> 
> find_package(CUDA)
> 
> cuda_add_executable(test
>   device.cu
>   host.cpp
>   )


James
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to