当前位置:网站首页>Solve the compilation problem of "c2001: line breaks in constants"
Solve the compilation problem of "c2001: line breaks in constants"
2022-07-06 04:12:00 【sanqima】
use Virsual Studio When compiling code , Sometimes there will be "C2001: Line breaks in constants " problem , The reason for this phenomenon is that the current code is "UTF-8 No BOM", To be converted into "UTF-8 belt BOM" Type is compiled OK. Click on VS On the menu bar 【 file 】–》 senior --》 Choose "UTF-8 belt BOM" --》OK, Pictured (1)、 chart (2) Shown .


Here is a batch to UTF-8 Source code , add to BOM Tools for :UltraCodingSwitch.exe, such as , To give source\i18n\ Under folder *.cpp、*.h file , All plus BOM.
1 Batch to .cpp File plus BOM

2 Batch to .h File plus BOM

reference
边栏推荐
- Lambda expression learning
- Mlapi series - 04 - network variables and network serialization [network synchronization]
- 【leetcode】22. bracket-generating
- 2/13 qaq~~ greed + binary prefix sum + number theory (find the greatest common factor of multiple numbers)
- 1291_ Add timestamp function in xshell log
- Record the pit of NETCORE's memory surge
- MySql數據庫root賬戶無法遠程登陸解决辦法
- The global and Chinese market of negative pressure wound therapy unit (npwtu) 2022-2028: Research Report on technology, participants, trends, market size and share
- asp. Core is compatible with both JWT authentication and cookies authentication
- [disassembly] a visual air fryer. By the way, analyze the internal circuit
猜你喜欢

食品行业仓储条码管理系统解决方案

AcWing 243. A simple integer problem 2 (tree array interval modification interval query)

1291_ Add timestamp function in xshell log

Facebook等大廠超十億用戶數據遭泄露,早該關注DID了

User datagram protocol UDP

One question per day (Mathematics)

【按键消抖】基于FPGA的按键消抖模块开发

10个 Istio 流量管理 最常用的例子,你知道几个?

Deep learning framework installation (tensorflow & pytorch & paddlepaddle)

绑定在游戏对象上的脚本的执行顺序
随机推荐
ESP32(基于Arduino)连接EMQX的Mqtt服务器上传信息与命令控制
Explain in simple terms node template parsing error escape is not a function
80% of the diseases are caused by bad living habits. There are eight common bad habits, which are both physical and mental
lora网关以太网传输
Facebook等大廠超十億用戶數據遭泄露,早該關注DID了
Mlapi series - 04 - network variables and network serialization [network synchronization]
Interface idempotency
How many of the 10 most common examples of istio traffic management do you know?
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
解决“C2001:常量中有换行符“编译问题
Detailed explanation of serialization and deserialization
【FPGA教程案例11】基于vivado核的除法器设计与实现
DM8 archive log file manual switching
Python book learning notes - Chapter 09 section 01 create and use classes
WPF effect Article 191 box selection listbox
Script lifecycle
Mysql数据库慢sql抓取与分析
VNCTF2022 WriteUp
Custom event of C (31)
In Net 6 CS more concise method