Compile error sdk beta2

Hi,

Thanks for the beta2 sdk and toolkit. I have problems though compiling it. LD_LIBRARY_PATH or ldconfig is configured correctly: within the same environment I can successfully compile sdk beta1. I can compile my personal code (outside the sdk) with the beta2 toolkit, so I think this is related to the beta2 sdk:

romain@---:/usr/local/cuda_sdk $ make

make[1]: Entering directory `/usr/local/cuda_sdk/common'

In file included from src/bank_checker.cpp:33:

./../common/inc/bank_checker.h:52: warning: type qualifiers ignored on function return type

./../common/inc/bank_checker.h:238: warning: type qualifiers ignored on function return type

src/bank_checker.cpp:75: warning: type qualifiers ignored on function return type

src/bank_checker.cpp:277: warning: type qualifiers ignored on function return type

In file included from src/cmd_arg_reader.cpp:33:

./../common/inc/cmd_arg_reader.h: In member function ‘const T* CmdArgReader::getArgHelper(const std::string&)’:

./../common/inc/cmd_arg_reader.h:416: error: must #include <typeinfo> before using typeid

./../common/inc/cmd_arg_reader.h:432: error: must #include <typeinfo> before using typeid

src/cmd_arg_reader.cpp: In destructor ‘CmdArgReader::~CmdArgReader()’:

src/cmd_arg_reader.cpp:101: error: must #include <typeinfo> before using typeid

src/cmd_arg_reader.cpp:106: error: must #include <typeinfo> before using typeid

src/cmd_arg_reader.cpp:111: error: must #include <typeinfo> before using typeid

src/cmd_arg_reader.cpp:116: error: must #include <typeinfo> before using typeid

src/cmd_arg_reader.cpp:121: error: must #include <typeinfo> before using typeid

make[1]: *** [obj/release/cmd_arg_reader.cpp_o] Error 1

make[1]: Leaving directory `/usr/local/cuda_sdk/common'

make: *** [lib/libcutil.so] Error 2

romain@---:/usr/local/cuda_sdk $

I hope I’m not making a dumb error…

Any hints?

Thank you in advance!

Best regards,

Romain

Which Linux distribution are you running?
What is the output from “nvcc -V” ?
Please generate and attach an nvidia-bug-report.log.

thanks,
Lonni

Thanks,

Actually, I should have read the error messages and used my brain (not running cuda yet ;-))
I’m using gcc-4.3, so I had to add the following ‘include’ lines:

in common/src/paramgl.cpp:
in projects/cppIntegration:
in common/inc/exception.h:
in common/src/cutil.h:
in common/src/cmd_arg_reader.cpp:

And now it works great.
S-o-r-r-y ;-)

Best regards,
Romain

Glad that you figured it out. Please note that gcc-4.3 is not supported with CUDA-2.0, so its quite possible that you will run into additional problems.

The next release after 2.0 will include support for gcc-4.3.