Comments (7)
Hi,
I have the sale issue
Is there a solution for ?
from jsoncpp.
Hi, I have the sale issue Is there a solution for ?
Of cause.
You can use other name to replace 'IStream' like 'iStream'.
And recompile it.
Luckly,jsoncpp use 'IStream' less.
So you just pay a little time to change all 'IStream' in jsoncpp source code.
from jsoncpp.
I find soltion to incldue afxole.h before include jsoncpp.h and it works
thanks
from jsoncpp.
What's the nature of the conflict?
If it's macros, then I would recommend isolating the windows header inclusion into a wrapper .cpp file. Only include it off to the side, where it can do less damage to other headers like jsoncpp's headers.
from jsoncpp.
What's the nature of the conflict? If it's macros, then I would recommend isolating the windows header inclusion into a wrapper .cpp file. Only include it off to the side, where it can do less damage to other headers like jsoncpp's headers.
Windows header CommCtrl.h has a struct declare which name is IStream in the header.
So it make the conflict between windows header and jsoncpp.
from jsoncpp.
But jsoncpp defines a Json::IStream
, so it's in the Json
namespace.
Line 139 in 69098a1
This sounds like the conflict is happening due to the user code breaking the separation between namespaces?
Perhaps the user code has using namespace Json;
directives or similar usage? If so, just don't do that.
I would like to see a repro and to see what the compiler's actual error message is.
from jsoncpp.
But jsoncpp defines a
Json::IStream
, so it's in theJson
namespace.Line 139 in 69098a1
This sounds like the conflict is happening due to the user code breaking the separation between namespaces?
Perhaps the user code has
using namespace Json;
directives or similar usage? If so, just don't do that.I would like to see a repro and to see what the compiler's actual error message is.
You're right.
Thanks for your reminder.
I overlooked this issue at the time.
from jsoncpp.
Related Issues (20)
- find_package(jsoncpp REQUIRED) failed HOT 2
- Range constructor HOT 1
- Serialization
- Support cmake config with meson build HOT 1
- It has been almost two years since jsoncpp released. May I know when the next one will be? HOT 1
- In Windows 10 Education Edition 21H2 using json 1.9.3 to write json files, garbled characters
- May it better that using ArrayIndex= size_t rather than ArrayIndex=unsigned int? HOT 1
- VS2022 x64, building INSTALL fails ( napi not found in Dependencies folder ) HOT 1
- Trailing comma before comment in array crashes
- LF to CRLF
- VS2013 debug build crashes compiler
- terminate called after throwing an instance of 'Json::LogicError'
- GDB pretty print support
- How to set both key and value pair as variable
- Can't Cross Compiling jsoncpp 00.11.z for aarch64 HOT 5
- Tests write to source tree when invoked via CMake
- Undefined reference to things HOT 2
- Why are the branches of the if statement not implemented consistently?
- CMake 3.27 warns about compatibility with CMake <3.5 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsoncpp.