Line feed causes visual studio 2022 compilation error under windows#22452
Line feed causes visual studio 2022 compilation error under windows#22452laolaolulu wants to merge 3 commits intoopencv:4.xfrom laolaolulu:4.x
Conversation
…indows" This reverts commit 1102dc2.
|
@laolaolulu, thank you for the PR! Could you provide a log with an error which happens on your side? I tried to reproduce it, but non of Visual Studio (2019, 2022) shows an error, only a warning. Steps to reproduce:
|
Download ZIP
Download ZIP. |
|
Okay, I'll try to build using a zip archive and give a feedback later. |
windows. VS opens the default "LF", build error12 |
|
@laolaolulu, I didn't find any issues during a build using a zip archive also. I don't know would be this good or not, but maybe just to translate these comments in Japanese to English version and remove Japanese version. I only added it as a comment yesterday in my PR (latest commit). Moreover, it can be converted in Japanese easily using a script from here. |
Strange, I can compile successfully by deleting the last Japanese character in line 334, or by adding any character after line 334 |
|
error! |
|
Could you try to replace Japanese characters with English version and build the project? |
ok thank you! I close |
|
Does it work with replacing? |
Write this line of code anywhere and compile will fail! (windows-visualstudio-LF) |
|
Okay, got it. I'll replace comments in Japanese with English version in my PR then to avoid it. Thank you! |

Download zip.windows environment and use visual studio to open it. The default format is "LF". The modified place fails to compile