Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue May 26, 2015 · 1 comment
Open

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

GoogleCodeExporter opened this issue May 26, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant