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

运行问题 #10

Open
inuxer opened this issue Jan 20, 2016 · 5 comments
Open

运行问题 #10

inuxer opened this issue Jan 20, 2016 · 5 comments

Comments

@inuxer
Copy link

inuxer commented Jan 20, 2016

VS2013需要别的设置吗?问什么运行各种问题,如下等
1>c:\users\administrator\desktop\tinystl-master\tinystl\Detail\Bitmap.impl.h(18): warning C4800: “uint8_t”: 将值强制为布尔值“true”或“false”(性能警告)
1> c:\users\administrator\desktop\tinystl-master\tinystl\Detail\Bitmap.impl.h(16): 编译类 模板 成员函数“void TinySTL::bitmap<8>::setNthInInt8(uint8_t &,size_t,bool)”时
1> c:\users\administrator\desktop\tinystl-master\tinystl\Detail\Bitmap.impl.h(66): 参见对正在编译的函数 模板 实例化“void TinySTL::bitmap<8>::setNthInInt8(uint8_t &,size_t,bool)”的引用
1> c:\users\administrator\desktop\tinystl-master\tinystl\Detail\Bitmap.impl.h(57): 编译类 模板 成员函数“TinySTL::bitmap<8>::bitmap(void)”时
1> Test\BitmapTest.cpp(16): 参见对正在编译的函数 模板 实例化“TinySTL::bitmap<8>::bitmap(void)”的引用
1> Test\BitmapTest.cpp(16): 参见对正在编译的类 模板 实例化“TinySTL::bitmap<8>”的引用

@zouxiaohang
Copy link
Owner

这些不是运行的问题吧,是模版实例化过程啊

@inuxer
Copy link
Author

inuxer commented Jan 20, 2016

如下;

c:\users\administrator\desktop\tinystl-master\tinystl\test../SuffixArray.h(71): warning C4018: “<”: 有符号/无符号不匹配
1> c:\users\administrator\desktop\tinystl-master\tinystl\test../SuffixArray.h(23): 参见对正在编译的函数 模板 实例化“void TinySTL::suffix_array::calSuffix(const InputIterator,size_t,size_t)”的引用
1> with
1> [
1> InputIterator=const char *
1> ]
1> Test\SuffixArrayTest.cpp(10): 参见对正在编译的函数 模板 实例化“TinySTL::suffix_array::suffix_array<const _Elem*>(const InputIterator,size_t,size_t)”的引用
1> with
1> [
1> _Elem=char
1> , InputIterator=const char *
1> ]

Test\Unordered_setTest.cpp(20): 参见对正在编译的类 模板 实例化“TinySTL::Unordered_set<int,std::hash,TinySTL::equal_to,TinySTL::allocator>”的引用
1>c:\users\administrator\desktop\tinystl-master\tinystl\Detail\Vector.impl.h(60): warning C4018: “>”: 有符号/无符号不匹配
1>c:\users\administrator\desktop\tinystl-master\tinystl\Detail\Vector.impl.h(60): warning C4018: “<=”: 有符号/无符号不匹配
1>c:\users\administrator\desktop\tinystl-master\tinystl\Detail\Vector.impl.h(64): warning C4018: “>”: 有符号/无符号不匹配
1>c:\users\administrator\desktop\tinystl-master\tinystl\Detail\Unordered_set.impl.h(256): warning C4018: “<=”: 有符号/无符号不匹配

@zouxiaohang
Copy link
Owner

请描述清楚问题,不要贴一大堆警告信息

@zouxiaohang
Copy link
Owner

npos重定义我这里也是vs2013&win7 没出现这个重定义错误。你可以修改修改源码把这个错误消除

@inuxer
Copy link
Author

inuxer commented Jan 20, 2016

String.h里的npos和String.cpp里面npos的定义,我注释掉了cpp里面的定义

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

No branches or pull requests

2 participants