MatrixMul error header error

make -C projects/matrixMul

make: Entering directory /root/ncs/projects/matrixMul' /usr/include/c++/4.3/bits/ios_base.h:410: error: declaration of ‘typedef class std::streampos std::ios_base::streampos’ /usr/include/c++/4.3/bits/postypes.h:207: error: changes meaning of ‘streampos’ from ‘typedef class std::fpos<__mbstate_t> std::streampos’ /usr/include/c++/4.3/bits/ios_base.h:411: error: declaration of ‘typedef std::streamoff std::ios_base::streamoff’ /usr/include/c++/4.3/bits/postypes.h:71: error: changes meaning of ‘streamoff’ from ‘typedef int64_t std::streamoff’ /usr/include/c++/4.3/streambuf:147: note: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) make: *** [obj/release/matrixMul.cu.o] Error 255 make: Leaving directory /root/ncs/projects/matrixMul’

how can i fix this error ???

Which Linux distribution are you running?

Which version of CUDA did you install ?

Linux dist: Suse 11.1

CUDA : 2.1

other projects are working fine …

this is where the error comes from

/usr/include/c++/4.3/bits/ios_base.h:410: error: declaration of ‘typedef class std::streampos std::ios_base::streampos’

/usr/include/c++/4.3/bits/ios_base.h:411: error: declaration of ‘typedef std::streamoff std::ios_base::streamoff’

i `ve change in the

ios_base.h:410 typedef class std::streampos std::ios_base::streampos to typedef class std::streampos std::ios_base::streampos_t

ios_base.h:411 typedef class std::streamoff std::ios_base::streamoff to typedef class std::streampos std::ios_base::streamoff_t

now it seems to work

~/ncs/bin/linux/release/matrixMul says Test : PASSED

but i dont know if it was right to change the ios_base.h file External Media

any suggestions ?

adding a

 using namespace std

before the include of the any STL file
works around this.
this is fixed in the 2.2 release

thanks that solved it ! :)