Why can the error "fatal error C1075" occur when using msbuild?

Perhaps related to my other question (note: another error code):

Our slave buildbot will compile our source code at night and work most of the time, but with interruptions we see this error:

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(223) : fatal error C1075: end of file found before the left brace '{' at '..\lib\net\CSocketMultiplexer.cpp(62)' was matched
        c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(427) : see reference to class template instantiation 'std::_Tree<_Traits>::const_iterator' being compiled
        with
        [
            _Traits=std::_Tmap_traits<ISocket *,CSocketMultiplexer::CJobCursor,std::less<ISocket *>,std::allocator<std::pair<ISocket *const ,CSocketMultiplexer::CJobCursor>>,false>
        ]
        ..\lib\net\CSocketMultiplexer.cpp(75) : see reference to class template instantiation 'std::_Tree<_Traits>::iterator' being compiled
        with
        [
            _Traits=std::_Tmap_traits<ISocket *,CSocketMultiplexer::CJobCursor,std::less<ISocket *>,std::allocator<std::pair<ISocket *const ,CSocketMultiplexer::CJobCursor>>,false>
        ]

See the full issue of the magazine and CSocketMultiplexer.cpp- Is there anything that I can change into CSocketMultiplexer.cppthat could interfere with this in the future?

Also, it might not be worth mentioning, but later in the log we see this error (which makes full sense, since the file was not compiled):

Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\synergy.dir\Debug\CSocketMultiplexer.sbr': No such file or directory
+1
source share
2

, " ". , RAM , , , "}" - . RAM.

? , ?

+1

.

:

* main.cpp(325): C2601: "FLAG":

main.cpp(323): '{',

main.cpp(326): C1075: , '{' at 'main.cpp(323)', *

. . .

, "//" . , , - , .

:

// This is a comment

This_is_a_line;

:

// This is a comment This_is_a_line;
0

Source: https://habr.com/ru/post/1778853/


All Articles