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

C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3799,22): error C2065: “ref”: 未声明的标识符 [Desktop\libredwg-master\build2\libredwg.vcxproj] #988

Closed
lyw308 opened this issue Jun 27, 2024 · 3 comments
Labels
wontfix This will not be worked on

Comments

@lyw308
Copy link

lyw308 commented Jun 27, 2024

C:\Users\Liu\Desktop\libredwg-master\src\common.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3477,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3799,22): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3799,23): error C2224: “.obj”的左侧必须具有结构/联合类型 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3800,22): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3800,23): error C2224: “.handleref”的左侧必须具有结构/联合类型 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3801,22): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3801,23): error C2224: “.absolute_ref”的左侧必须具有结构/联合类型 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3802,50): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3802,50): warning C4133: “函数”: 从“int *”到“Dwg_Object_Ref *restrict ”的类型不兼容 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3815,48): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3815,49): error C2224: “.absolute_ref”的左侧必须具有结构/联合类型 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3824,1): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3824,1): error C2224: “.absolute_ref”的左侧必须具有结构/联合类型 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
20240627115738059

@rurban
Copy link
Contributor

rurban commented Jun 29, 2024

Apparently the native codepage 936 cannot be used with Visual Studio. Nothing much we can do about that. Maybe there is a msvc option to tell that the source is UTF-8. That would help

@rurban rurban added the wontfix This will not be worked on label Jun 29, 2024
@lyw308
Copy link
Author

lyw308 commented Jun 29, 2024

Apparently the native codepage 936 cannot be used with Visual Studio. Nothing we can do about that

ok thanks your reply

rurban added a commit that referenced this issue Jul 6, 2024
@rurban
Copy link
Contributor

rurban commented Jul 6, 2024

msvc needs /utf-8 to be set. now added

@rurban rurban closed this as completed Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants