Comments (2)
Are you using the symbol (and it's failing because it's not exported)? Are you linking all the parts together?
from docopt.cpp.
I'm not expert on shared library.
All I do is launch cmake-gui
to enable the example project and then "configure" and "generate". I suppose cmake should take care of all those setup.
I think it's clear that in the source code this operator<<
overloading function has no DOCOPT_API
with it (declared in docopt_value.h
).
So on Windows (or for Visual Studio?), I suppose by default a symbol is not exported.
The only change to fix this, as I listed in the OP, is adding DOCOPT_API
to that operator <<
function, the example project would build and run without problem.
from docopt.cpp.
Related Issues (20)
- CMake Windows: install *.dll in the correct location HOT 1
- Feature Request: Please support default that picks up value from environment variable HOT 3
- Better CMake
- New release proposal HOT 5
- Unable to add short version of option HOT 10
- Suggestion: docopt::value to provide a `represent` method rather than overloading operator<< for std::ostream HOT 1
- Crash in 0.6.3 HOT 3
- replacing std::regex with ctre HOT 3
- Packaging for Debian is incorrect. Should be splitted into multiple packages using CPackComponent and renamed for debian into libdocopt-dev and libdocopt HOT 2
- Compile time parse usage
- Argument names with characters other than letters (like underscores or numbers) don't work HOT 1
- Using optional args out of order leads to wrong values all around HOT 2
- MSAN Warning on use-of-initialized-value in docopt::docopt_parse HOT 2
- Update vcpkg port
- Should docopt::Options be an std::unordered_map? HOT 2
- Missing support for comments HOT 2
- Unclear/undocumented value interface. HOT 4
- Unused variable in `Option::parse`
- Version 0.6.3 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 docopt.cpp.