简体   繁体   English

包含iostream时出现xlocnum.h错误

[英]xlocnum.h errors when including iostream

I have some code, and when I don't include iostream everything works, but when I do, I get a bunch of strange errors: 我有一些代码,当我不包括iostream时,一切正常,但是当我这样做时,我会遇到很多奇怪的错误:

在此处输入图片说明

I have never seen this before and don't know what this means... 我以前从未见过,也不知道这意味着什么...

edit: The ambiguous symbol is unrelated btw, that's already fixed 编辑:模棱两可的符号是不相关的顺便说一句,这已经固定

oke pretty dumb: defined a macro named size, which apparently causes conflicts all of the place:p oke pretty dumb:定义了一个名为size的宏,这显然会引起所有地方的冲突:p

I wonder though, wouldn't it be pretty easy for a compiler to figure our whether string->size() should be interpreted as a method call or as string->4, which makes no sense... 我不知道,对于编译器来说,弄清楚我们应该将string-> size()解释为方法调用还是解释为string-> 4,这不是一件容易的事吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM