y2jinc / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

#include <string.h> -> #include <string> #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello!
I use stlport and I have compilation error on line
throw std::runtime_error("Assertion failed");
Something with string auto convertions.
'<function-style-cast>' : cannot convert from 'const char [17]' 
to 'stlp_std::runtime_error'
Please use modern <string> header name.
I'm able to compile after I replace this name.

Original issue reported on code.google.com by Dimalit...@gmail.com on 14 Nov 2009 at 11:27

GoogleCodeExporter commented 9 years ago
NVTT does not use STL strings, and should not need to include the 'string' 
header
file. The 'string.h' header file is part C standard library:

http://en.wikipedia.org/wiki/String.h

This looks like an error in your setup. Please, reopen if you think that's not 
the case.

Original comment by cast...@gmail.com on 2 Mar 2010 at 1:53