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

Visual C++ 2019 配置静态库不成功? #34

Closed
huansu opened this issue Nov 5, 2021 · 1 comment
Closed

Visual C++ 2019 配置静态库不成功? #34

huansu opened this issue Nov 5, 2021 · 1 comment
Labels
Question 代码问题

Comments

@huansu
Copy link

huansu commented Nov 5, 2021

按照图示配置了静态库,但是好像没成功,我对Visual的使用并不熟悉,并且尝试解决问题失败。
错误:
`已启动生成…
1>------ 已启动生成: 项目: 0604_BiThrTree, 配置: Debug Win32 ------
1>BiThrTree.c

1>C:\Users\22318\Desktop\Data-Structure-master\VisualC++\CourseBook\0604_BiThrTree\BiThrTree.c(37,14): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

1>C:\Users\22318\Desktop\Data-Structure-master\VisualC++\CourseBook\0604_BiThrTree\BiThrTree.c(132,9): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

1>LINK : warning LNK4217: 符号“_printf”(在“ BiThrTree-main.obj”中定义)已由“Status.lib(Status.obj)”(函数“_PressEnterToContinue”中)导入

1>Status.lib(Status.obj) : error LNK2019: 无法解析的外部符号 __imp__fscanf,函数 _ReadData 中引用了该符号

1>Status.lib(Status.obj) : error LNK2019: 无法解析的外部符号 __imp____iob_func,函数 _PressEnterToContinue 中引用了该符号

1>C:\Users\22318\Desktop\Data-Structure-master\VisualC++\CourseBook\Debug\0604_BiThrTree.exe : fatal error LNK1120: 2 个无法解析的外部命令

1>已完成生成项目“0604_BiThrTree.vcxproj”的操作 - 失败。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========`

@huansu
Copy link
Author

huansu commented Nov 5, 2021

Clion中运行无问题,还是熟悉的配方带劲!!!

@huansu huansu closed this as completed Nov 5, 2021
@kangjianwei kangjianwei added the Question 代码问题 label Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question 代码问题
Projects
None yet
Development

No branches or pull requests

2 participants