Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Defining PLAIN_API_ONLY Causes Compiler Errors #45

Closed
6XGate opened this issue Oct 27, 2016 · 1 comment
Closed

Defining PLAIN_API_ONLY Causes Compiler Errors #45

6XGate opened this issue Oct 27, 2016 · 1 comment

Comments

@6XGate
Copy link

6XGate commented Oct 27, 2016

I'm attempting to build a project using Sciter while using its plain API in Visual Studio 2015, but defining PLAIN_API_ONLY causes the following compiler errors:

1>$(CapsulesPath)sciter\include\value.hpp(82): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(82): error C2061: syntax error: identifier 'wchars'
1>$(CapsulesPath)sciter\include\value.hpp(82): error C2535: 'sciter::value::value(void)': member function already defined or declared
1>  $(CapsulesPath)sciter\include\value.hpp(65): note: see declaration of 'sciter::value::value'
1>$(CapsulesPath)sciter\include\value.hpp(84): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(84): error C2061: syntax error: identifier 'bytes'
1>$(CapsulesPath)sciter\include\value.hpp(84): error C2535: 'sciter::value::value(void)': member function already defined or declared
1>  $(CapsulesPath)sciter\include\value.hpp(65): note: see declaration of 'sciter::value::value'
1>$(CapsulesPath)sciter\include\value.hpp(96): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(96): error C2061: syntax error: identifier 'wchars'
1>$(CapsulesPath)sciter\include\value.hpp(212): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(212): error C3646: 'get_chars': unknown override specifier
1>$(CapsulesPath)sciter\include\value.hpp(212): error C2059: syntax error: '('
1>$(CapsulesPath)sciter\include\value.hpp(213): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>$(CapsulesPath)sciter\include\value.hpp(218): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(218): error C3646: 'get_bytes': unknown override specifier
1>$(CapsulesPath)sciter\include\value.hpp(218): error C2059: syntax error: '('
1>$(CapsulesPath)sciter\include\value.hpp(219): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>$(CapsulesPath)sciter\include\value.hpp(257): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(257): error C2061: syntax error: identifier 'wchars'
1>$(CapsulesPath)sciter\include\value.hpp(79): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(79): error C2065: 'a2w': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(79): error C2146: syntax error: missing ';' before identifier 'as'
1>$(CapsulesPath)sciter\include\value.hpp(79): error C3861: 'as': identifier not found
1>$(CapsulesPath)sciter\include\value.hpp(79): error C2065: 'as': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(79): error C2228: left of '.c_str' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(79): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(79): error C2228: left of '.length' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(79): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(82): error C2065: 'ws': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(82): error C2228: left of '.start' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(82): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(82): error C2228: left of '.length' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(82): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(82): error C2660: 'ValueStringDataSet': function does not take 3 arguments
1>$(CapsulesPath)sciter\include\value.hpp(84): error C2065: 'bs': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(84): error C2228: left of '.start' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(84): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(84): error C2228: left of '.length' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(84): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(84): error C2660: 'ValueBinaryDataSet': function does not take 3 arguments
1>$(CapsulesPath)sciter\include\value.hpp(96): error C2065: 'wc': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(96): error C2228: left of '.start' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(96): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(96): error C2228: left of '.length' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(96): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(96): error C2660: 'ValueStringDataSet': function does not take 3 arguments
1>$(CapsulesPath)sciter\include\value.hpp(101): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(101): error C2065: 'a2w': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(101): error C2146: syntax error: missing ';' before identifier 'as'
1>$(CapsulesPath)sciter\include\value.hpp(101): error C3861: 'as': identifier not found
1>$(CapsulesPath)sciter\include\value.hpp(102): error C2065: 'as': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(102): error C2228: left of '.c_str' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(102): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(102): error C2228: left of '.length' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(102): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(107): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(107): error C2065: 'a2w': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(107): error C2146: syntax error: missing ';' before identifier 'as'
1>$(CapsulesPath)sciter\include\value.hpp(107): error C3861: 'as': identifier not found
1>$(CapsulesPath)sciter\include\value.hpp(108): error C2065: 'as': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(108): error C2228: left of '.chars' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(108): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(112): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(112): error C3861: 'chars_of': identifier not found
1>$(CapsulesPath)sciter\include\value.hpp(149): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(207): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(207): error C2065: 'wchars': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(207): error C2146: syntax error: missing ';' before identifier 'wc'
1>$(CapsulesPath)sciter\include\value.hpp(207): error C2065: 'wc': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(208): error C2065: 'wc': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(208): error C2228: left of '.start' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(208): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(208): error C2228: left of '.length' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(208): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(208): error C2660: 'ValueStringData': function does not take 1 arguments
1>$(CapsulesPath)sciter\include\value.hpp(209): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(209): error C2065: 'wc': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(259): error C2065: 's': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(259): error C2228: left of '.start' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(259): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(259): error C2228: left of '.length' must have class/struct/union
1>  $(CapsulesPath)sciter\include\value.hpp(259): note: type is 'unknown-type'
1>$(CapsulesPath)sciter\include\value.hpp(259): error C2065: 'ct': undeclared identifier
1>$(CapsulesPath)sciter\include\value.hpp(266): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(266): error C3861: 'get_chars': identifier not found
1>$(CapsulesPath)sciter\include\value.hpp(269): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\value.hpp(269): error C2039: 'get_chars': is not a member of 'sciter::value'
1>  $(CapsulesPath)sciter\include\value.hpp(59): note: see declaration of 'sciter::value'
1>$(CapsulesPath)sciter\include\sciter-x-def.h(509): error C2061: syntax error: identifier 'IDXGISwapChain'
1>$(CapsulesPath)sciter\include\sciter-x-def.h(531): error C2061: syntax error: identifier 'IDXGISurface'
1>$(CapsulesPath)sciter\include\tiscript-streams.hpp(45): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\tiscript.hpp(164): error C2653: 'aux': is not a class or namespace name
1>$(CapsulesPath)sciter\include\sciter-x-api.h(249): error C2061: syntax error: identifier 'IDXGISwapChain'
1>$(CapsulesPath)sciter\include\sciter-x-api.h(251): error C2061: syntax error: identifier 'IDXGISurface'
1>$(CapsulesPath)sciter\include\sciter-x-api.h(607): error C2061: syntax error: identifier 'IDXGISwapChain'
1>$(CapsulesPath)sciter\include\sciter-x-api.h(607): error C2065: 'pSwapChain': undeclared identifier
1>$(CapsulesPath)sciter\include\sciter-x-api.h(609): error C2061: syntax error: identifier 'IDXGISurface'
1>$(CapsulesPath)sciter\include\sciter-x-api.h(609): error C2065: 'surface': undeclared identifier
@c-smile
Copy link
Owner

c-smile commented Oct 29, 2016

Fixed by 664d51c

@c-smile c-smile closed this as completed Oct 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants