c1xx : fatal error C1083: Cannot open source file - with some Chinese or Javanese

微笑、不失礼 提交于 2019-12-23 02:36:42

问题


I am getting the following compilation errors:**

4>c1xx : fatal error C1083: Cannot open source file: '䀀∀䤀渀挀氀甀搀攀倀愀琀栀猀䘀漀爀䴀甀氀琀椀刀愀挀欀䌀漀爀攀䰀椀戀⸀琀砀琀∀': No such file or directory
4> ∀䐀㨀尀瀀㐀挀氀椀攀渀琀尀倀爀漀䄀甀搀椀漀尀搀攀瘀开瘀猀㄀㈀尀倀爀漀䄀甀搀椀漀尀堀倀氀愀琀昀漀爀洀尀䄀瀀瀀猀ⴀ䌀漀洀洀漀渀尀䌀漀搀攀尀吀栀爀攀愀搀猀尀圀䌀䔀爀爀愀渀搀䴀愀渀愀最攀爀⸀挀瀀瀀∀
4>c1xx : fatal error C1083: Cannot open source file: '∀䐀㨀尀瀀㐀挀氀椀攀渀琀尀倀爀漀䄀甀搀椀漀尀搀攀瘀开瘀猀㄀㈀尀倀爀漀䄀甀搀椀漀尀堀倀氀愀琀昀漀爀洀尀䄀瀀瀀猀ⴀ䌀漀洀洀漀渀尀䌀漀搀攀尀吀栀爀攀愀搀猀尀圀䌀䔀爀爀愀渀搀䴀愀渀愀最攀爀⸀挀瀀瀀∀': No such file or directory
4> 匀漀甀爀挀攀猀尀圀䌀䰀漀最最攀爀⸀挀瀀瀀
4>c1xx : fatal error C1083: Cannot open source file: '匀漀甀爀挀攀猀尀圀䌀䰀漀最最攀爀⸀挀瀀瀀': No such file or directory
4> 匀漀甀爀挀攀猀尀圀䌀䴀甀氀琀椀刀愀挀欀䌀漀爀攀⸀挀瀀瀀
4>c1xx : fatal error C1083: Cannot open source file: '匀漀甀爀挀攀猀尀圀䌀䴀甀氀琀椀刀愀挀欀䌀漀爀攀⸀挀瀀瀀': No such file or directory
4> 匀漀甀爀挀攀猀尀圀䌀䴀甀氀琀椀刀愀挀欀䌀漀爀攀开䄀倀䤀⸀挀瀀瀀
4>c1xx : fatal error C1083: Cannot open source file: '匀漀甀爀挀攀猀尀圀䌀䴀甀氀琀椀刀愀挀欀䌀漀爀攀开䄀倀䤀⸀挀瀀瀀': No such file or directory
4> 匀漀甀爀挀攀猀尀圀䌀䴀甀氀琀椀刀愀挀欀䌀漀爀攀开䄀甀搀椀漀⸀挀瀀瀀
4>c1xx : fatal error C1083: Cannot open source file: '匀漀甀爀挀攀猀尀圀䌀䴀甀氀琀椀刀愀挀欀䌀漀爀攀开䄀甀搀椀漀⸀挀瀀瀀': No such file or directory
4> 匀漀甀爀挀攀猀尀圀䌀䴀甀氀琀椀刀愀挀欀䌀漀爀攀开䄀甀搀椀漀䜀爀椀搀⸀挀瀀瀀

Any ideas?
How can I fix the language settings?


回答1:


Solved.

There was an invalid flag in .vcxproj file.

<Link>  
    <AdditionalOptions>%(AdditionalOptions)</AdditionalOptions>  
</Link>  

Problem dissapeared when flag was removed.




回答2:


We had same issue when upgrading our solution from VS2005 to VS2012. Problem was inside vcxproj files. We had new line character in command line options. After removing it, our project compiled without any problem.

changed this

 <AdditionalOptions>/MP4 
/Zm200</AdditionalOptions>

to this

 <AdditionalOptions>/MP4 /Zm200</AdditionalOptions>



回答3:


Any ideas?
How can I fix the language settings?

This is not a language issue. The compiler cannot open the files you want it to compile. Do those files exist? Are you invoking the compiler from the right directory?

Also, you might get better help if you call your source files foo.cpp, bar.cpp, and baz.cpp. I guesstimate 80% of potential answerers will have a hard time telling your files apart or discovering simple spelling errors in their names.




回答4:


restart the Visual studio(VS2013) is worked for me. As per my understanding , linking was improper, restarting will help to auto link and will resolve c1xx issues.




回答5:


Please follow the steps to encounter this problem: 1. Unload your project 2. Open vcxproj or csproj file in notepad++ 3. remove the entry from -> 4. Load the project and try to compile it.

This will solve your issue. Thanks



来源:https://stackoverflow.com/questions/12561861/c1xx-fatal-error-c1083-cannot-open-source-file-with-some-chinese-or-javanes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!