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

swig on window10 #26

Open
FoilHao opened this issue Jul 14, 2019 · 7 comments
Open

swig on window10 #26

FoilHao opened this issue Jul 14, 2019 · 7 comments

Comments

@FoilHao
Copy link

FoilHao commented Jul 14, 2019

Can I use swigwin on win10 to compile the repo?
When I do that, I met some errors, and how can I solve this?
polyiou.cpp: warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
polyiou.cpp(89): error C2059: 语法错误:“if”
polyiou.cpp(90): error C2059: 语法错误:“if”
polyiou.cpp(91): error C2065: “n1”: 未声明的标识符
polyiou.cpp(91): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
polyiou.cpp(91): error C2440: “初始化”: 无法从“int”转换为“int [1]”
polyiou.cpp(91): note: 没有转换为数组类型,但有转换为数组的引用或指针
polyiou.cpp(92): error C2065: “n2”: 未声明的标识符
polyiou.cpp(92): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
polyiou.cpp(92): error C2440: “初始化”: 无法从“int”转换为“int [1]”
polyiou.cpp(92): note: 没有转换为数组类型,但有转换为数组的引用或指针
polyiou.cpp(94): error C2059: 语法错误:“for”
polyiou.cpp(94): error C2143: 语法错误: 缺少“)”(在“;”的前面)
polyiou.cpp(94): error C2143: 语法错误: 缺少“;”(在“<”的前面)
polyiou.cpp(94): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
polyiou.cpp(94): error C2143: 语法错误: 缺少“;”(在“++”的前面)
polyiou.cpp(94): error C2086: “int i”: 重定义
polyiou.cpp(94): note: 参见“i”的声明
polyiou.cpp(94): error C2059: 语法错误:“)”
polyiou.cpp(94): error C2143: 语法错误: 缺少“;”(在“{”的前面)
polyiou.cpp(94): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
polyiou.cpp(99): error C2059: 语法错误:“return”
polyiou.cpp(100): error C2059: 语法错误:“}”
polyiou.cpp(100): error C2143: 语法错误: 缺少“;”(在“}”的前面)
polyiou.cpp(105): error C2143: 语法错误: 缺少“;”(在“{”的前面)
polyiou.cpp(105): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)

@BrainyYY
Copy link

Did you find the method to solve this problem?I just met the same issue.
有解决吗?

@mayflyfy
Copy link

mayflyfy commented Aug 8, 2019

很简单,将DOTA_devkit-master文件夹根目录的polyiou.cpp用Notepad打开,然后将编码改为UTF-8 带BOM格式,再重新执行之前的代码就OK

@Tristesse-stk
Copy link

很简单,将DOTA_devkit-master文件夹根目录的polyiou.cpp用Notepad打开,然后将编码改为UTF-8 带BOM格式,再重新执行之前的代码就OK
搜了老半天还是这个方法有效,👍

@Anm-pinellia
Copy link

很简单,将DOTA_devkit-master文件夹根目录的polyiou.cpp用Notepad打开,然后将编码改为UTF-8 带BOM格式,再重新执行之前的代码就OK

牛,有用

@Songyeyaosong
Copy link

牛逼!

@ulyduts
Copy link

ulyduts commented Jul 17, 2023

很简单,将DOTA_devkit-master文件夹根目录的polyiou.cpp用Notepad打开,然后将编码改为UTF-8 带BOM格式,再重新执行之前的代码就OK

还是不行,报同样的错误,有什么其他办法吗

@ChanganLeo
Copy link

很简单,将DOTA_devkit-master文件夹根目录的polyiou.cpp用Notepad打开,然后将编码改为UTF-8 带BOM格式,再重新执行之前的代码就OK

牛啊牛

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

8 participants