当前位置:网站首页>visual studio开发过程中常见操作
visual studio开发过程中常见操作
2022-06-22 13:27:00 【吨吨不打野】
以下内容均基于visual studio2017进行
1. 界面设置
1.1 字体字号
工具->选项

然后在环境->字体和颜色,
- 默认字体是
华文XXX,我一般习惯用consolas, - 这里的Consolas表示等宽字体,不是加宽的意思

2. 开发过程中的问题
2.1 多个cpp只运行其中1个
- 正常一个项目里,即便有多个cpp文件,也只能有1个cpp文件中有
main函数,否则就会报错 - 项目的运行是从 main()函数开始的,main()在哪个CPP文件中,运行就从这个CPP文件的main()开始。
- 如果想一个一个的运行cpp文件,请建立多个项目,或者在项目中排除上一个包含main函数的文件(右击文件——在项目中排除,这个操作不会删除文件,只是从当前项目中排除该文件。),添加下一个包含main函数的文件。
参考
3. 报错解决
3.1 错误 C1128
3.1.1 错误解决
根据/bigobj (Increase Number of Sections in .Obj file)

项目解决方案->右击,点击属性-> C/C+±>命令行->其他选项->加入:/bigobj->点击应用
参考:
- 微软文档:错误 C1128
3.1.2 错误原因
参考:vs2017调试错误:Error:C1128 节数超过对象文件格式限制: 请使用 /bigobj 进行编译
对象文件存放的寻址超过了2^16=65536,因此需要利用 /bigobj 将该地址容量增加至 2^32=4;
边栏推荐
- 机器学习之支持向量机
- Detailed explanation of CSAPP Labs
- 嵌入式中的强符号和弱符号是什么?
- JS advanced programming version 4: learning iterators
- As a passer-by, some advice for programmers who are new to the workplace
- C # WinForm photo album function, picture zooming, dragging, preview Pagination
- The diffusion model is crazy again! This time the occupied area is
- Struggle, programmer -- Chapter 48 A thousand gold coins are bought like Fu. Who can complain about this situation
- Is polardbx PG or MySQL?
- Network address translation nat
猜你喜欢

After reading this article, I will teach you to play with the penetration test target vulnhub - drivetingblues-5

数据采集之:巧用布隆过滤器提取数据摘要

Kukai TV ADB

Shan Zhiguang, chairman of BSN Development Alliance: DDC can provide the underlying support for the development of China's meta universe industry

Software architecture

Le modèle de diffusion est encore fou! Cette fois - ci, la zone occupée était...

Deadlock found when trying to get lock; Try restarting transaction

Is the encryption market a "natural disaster" or a "man-made disaster" in the cold winter?

拜登签署两项旨在加强政府网络安全的新法案

Database employment consulting system for your help
随机推荐
Support vector machine for machine learning
JS advanced programming version 4: learning iterators
C language student management system (open source)
【考研攻略】北京交通大学网络空间安全专业2018-2022年考研数据分析
扩散模型又杀疯了!这一次被攻占的领域是...
Lisez ceci pour vous apprendre à jouer avec la cible de test de pénétration vulnhub - driftingblues - 5
JasperReport报表生成工具的基本使用和常见问题
Is the encryption market a "natural disaster" or a "man-made disaster" in the cold winter?
数据采集之:巧用布隆过滤器提取数据摘要
How location coding (PE) works in transformers
嵌入式中的强符号和弱符号是什么?
Cosmos、Polkadot
Data collection: skillfully using Bloom filter to extract data summary
Perceptron of machine learning
一篇博客让你了解Material Design的使用
Fluentd is easy to get started. Combined with the rainbow plug-in market, log collection is faster
直播出海 | 国内直播间再出爆品,「外卷」全球如何致胜
Messari annual report-2022
Open source SPL redefines OLAP server
How maxscale handles event status after MariaDB master-slave switchover -handle_ events