Several ceguis, ogre compilation error handling

Source: Internet
Author: User

1. Errors During orge Compilation

 

Objidl. H (11280): Error c2061: syntax error: identifier '_ RPC _ out_xcount_part'

 

Solution: Find the rpcsal. h file and delete it.

The root cause is that the Windows 7 SDK in vc2010 contains this file and its definition is different. Solve the Problem of repeated compilation. This problem should not exist in vc2008.

 

 

2. Initialization compilation error during cegui

Error c2440: "initialization": cannot be converted from "Int" to "cegui: listboxitem *" c: \ Program Files \ microsoftvisual studio 10.0 \ Vc \ include \ xmemory 208 1 ceguibase

 

Solutions found

Http://www.cegui.org.uk/phpBB2/viewtopic.php? F = 10 & t = 4211 & P = 19374 & hilit = Error + c2440 # p19374

 

Solution: Open ceguimulticolumnlist. CPP file, and view the 702 rows, or use "d_grid [I]. d_items.insert (d_grid [I]. d_items.begin () + position, "to search and replace null with nullptr.

 

 

3. Errors During ceguiogrerenderer Compilation

 

Error c2440: "initialization": cannot be converted from "constcegui: ogreceguirenderer: quadinfo *" to "cegui: ogreceguirenderer: quadinfo *"

 

The reason is that the method needs to pass in a general object pointer, but in fact it may pass in a yield pointer, resulting in an expected error.

 

After multi-party queries, the message is processed on the next day below.

Error c2439: "STD: _ pair_base <_ ty1, _ ty2 >:: second"

 

After asking Google, I learned that most of the reasons are that nullptr must be used instead of null to indicate null pointers after the STD library is upgraded. Based on the preceding error, locate the STD type related to quadinfo * and modify the data insertion method in row 172 of ogreceguirenderer. cpp, and pass in the output parameter:

Previously:

 

4. ceguisystem reported that the Lua object was not found.

 

Error c2065: "luastack": Undeclared identifier

Error c2065: "luaobject": Undeclared identifier

 

The prompt is that the Lua header file is not included, but the actual situation is already included. In the end, the corresponding type cannot be found because no namespace is defined. Why is this error not reported in vc2008.

 

 

5. wxcore errors

 

Error c2440: "initialization": cannot be converted from "Int" to "wx: unsolvedmaterialtexture *"

The classic error after the standard STD is updated. The modified location is row 178th, the same as Issue 2.

 

Error c2440: "initialization": cannot be converted from "Int" to "wx: 'anonus US-namespace ': unsolvedsceneitem *"

 

The correct method is the same as that in the 166 rows of the file.

 

Error c2440: "<function-style-cast>": cannot be converted from "Int" to "STD: _ tree_iterator <_ mytree>"

This is also a STD issue. The Code mainly involves: animationskeletonlinks: iterator (0)

Is the cause? It is estimated that the constructor previously supported int number initialization, but not now. Just remove 0.

 

 

6. wxrender compilation Error

 

Error c1012: mismatched brackets: Missing ")" c: \ Program Files \ microsoftsdks \ windows \ v7.0a \ include \ sdkddkver. h 246

 

A macro is defined when the error occurs:

# Ifndef ntddi_version

# Ifdef _ win32_winnt

// Setntddi_version Based on _ win32_winnt

# Define ntddi_version ntddi_version_from_win32_winnt (_ win32_winnt)

# Else

# Define ntddi_version 0x06010000

# Endif

# Endif

 

The above means that if ntddi_version is not defined and _ win32_winnt is defined, it is defined according to a macro; otherwise, a yield is given. However, this macro definition has multiple layers of nesting in the definition, leading to the above variant error. Without figuring out whether the macro is invalid due to an operation, replace the macro definition above with a constant.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.