acimpoeru / opencurrent

Automatically exported from code.google.com/p/opencurrent
0 stars 0 forks source link

"error: identifier "printf" is undefined" during make #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Followed instructions in System.cmake.src to cmake. 
   Had to add the following lines:
    SET(NetCDF_INCLUDE_DIR "/usr/include/")
    SET(NetCDF_LIBRARY "/usr/lib/libnetcdf.so")

2. Ran make. Got to 8% and were then interrupted by: 
<path>/opencurrent-1.1.0/src/ocustorage/transfer_routines.cu(144): error: 
identifier "printf" is undefined
<^^Repeated 10 more times for different lines in the same file^^>
11 errors detected in the compilation of 
"/tmp/tmpxft_00002674_00000000-4_transfer_routines.cpp1.ii".

What version of the product are you using? On what operating system?
OpenCurrent v1.1.0 release (tar.gz file)
GeForce GTX 580 (compute capability 2.0, 1536 Mb memory).
Ubuntu 11.04 x86_64

Please provide any additional information below.

Original issue reported on code.google.com by eskil.au...@gmail.com on 5 Jul 2011 at 1:13

GoogleCodeExporter commented 8 years ago
I reproduce the problem in Ubuntu 11.04 x86_64, and I add
    #include <cstdio>
in the beginning of /src/ocustorage/coarry.h (becuase not only one file need 
patched if you edit each .cu files in ocustorage)
then Ok.

Original comment by gwj...@hotmail.com on 24 Aug 2011 at 3:34