ICE source code compiles error and problem solving

xiaoxiao2021-03-05  20

After downloading the ICE source code, decompress the C drive, double-click Open All.dsw, follow the prompts of the vs.NET IDE, convert all items to the Solution and VcProj files under .NET. Then Build-> Build Solution.

To this, when it is compiled into the ICE project, it is wrong when it is the Router.cpp file, and the error is shown below:

C: /ICE-2.1.0/src/ice/router.cpp (408): Error C2059: Syntax error: '.'

......

Carefully check, did not find anything, the C grammar of the ICE source program is definitely no problem, the referenced header file is also there.

So I found the first error, and all the code after the method will be commented out, and the rest of the method and the other code are as notes. The error code is as follows:

:: Iceinternal :: Outgoing __out (__connection.get (), __reference.get (), __perence, static_cast <:: ip :: OperationMode> (1), __Context, __compress;

BOOL __OK = __ out.invoke ();

When the second sentence calls __out.invoke () compiles error, comment, then compile everything, it is normal.

Try to change __out to _out, call _out.invoke () everything is normal, so I started suspected that this variable name has a problem. Change to __out1 is also normal.

Because __out is defined within a method, it is a local variable, so even if the global variable or the instance or class variable reintegate, it is not affected. Google search __out, found that there is a statement like #define __out, it is clear, it should be a macro and __out reintegration, open vc.net Tools-> options-> Projects-> VC Directories observed include INCLUDE FILES Doubt objects are removed, recompile, all pass. The Include Files directory that ultimately determined to have problems is C: / Program Files / Microsoft Platform SDK for Windows XP SP2 / Include /

转载请注明原文地址:https://www.9cbs.com/read-39215.html

New Post(0)