Cocos2d-x add sqlite3 times lua_number Error

Source: Internet
Author: User
Tags lua

1> f:\cocos2d-x\cocos2d-x\external\lua\lua\lua.h (99): See Declaration of "Lua_number"
1>F:\COCOS2D-X\COCOS2D-X\EXTERNAL\SQLITE3-EXT\LSQLITE3.C (1272): Error C2146: syntax error: Missing ";" (in front of the identifier "n")
1>F:\COCOS2D-X\COCOS2D-X\EXTERNAL\SQLITE3-EXT\LSQLITE3.C (1272): Error C2065: "n": undeclared identifier
1>F:\COCOS2D-X\COCOS2D-X\EXTERNAL\SQLITE3-EXT\LSQLITE3.C (1273): Error C2065: "n": undeclared identifier
1>F:\COCOS2D-X\COCOS2D-X\EXTERNAL\SQLITE3-EXT\LSQLITE3.C (1274): Error C2065: "n": undeclared identifier

Look at the definition of Lua_number, is a double, and nothing strange, and then looked at this file is a C, silently understand

Place Lua_number n = (lua_number) rowID at the beginning of the function to resolve

As for this does not error in Xcode, and in the VS report wrong, do not know what is the reason for

Cocos2d-x add sqlite3 times lua_number Error

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.