Comments (7)
That shouldn't happen if you set that option to 0. Remember that CMake
caches options, so if you set it to 1 and then to 0, it won't work. Have
you tried that on a clean compilstion?
As for the error. I'll see if there's any workarounds.
Thanks for the info.
On Apr 6, 2015 4:15 AM, "blazeable" [email protected] wrote:
I'm trying to compile the latest sources using VS2013 targeting x64, but
I'm getting compilation errors in include/tins/internals.h. VS2013 doesn't
like this template:
template <class T, class P, class=void>
struct accepts_type : std::false_type { };template <class T, class P>
struct accepts_type<T, P,
typename std::enable_if<
std::is_same< decltype( std::declval()(std::declval()) ),
bool>::value::type
: std::true_type { };Which would be a bug (or lack of support) in VS2013, as it compiles fine
elsewhere.However, I'm getting this even when configuring with
LIBTINS_ENABLE_CXX11=0. It seems the TINS_IS_CXX11 definition in cxxstd.h
does not check the HAVE_CXX11 macro from config.h.—
Reply to this email directly or view it on GitHub
#64.
from libtins.
Sorry, you're right. The switch doesn't do anything on VS, since VS uses C++11 by default. I'll add a quick fix now, just disabling that section of code, and try to fix it tonight.
from libtins.
Okay, I've just pushed a fix that disables that part of the code when using Visual Studio, so you should now be able to compile it.
Sorry for the troubles. I'll have a look at this later, although I just tried a few things and apparently VS doesn't like the use of decltype
and declval
there. Hopefully there's some workaround for this. I'll keep you updated.
from libtins.
Thanks for the fix, I was able to build the libtins library with LIBTINS_ENABLE_CXX11=1 defined :) However I'm getting compilation errors in the example projects, seems the build system isn't adding the pcap and openssl directories to the include path for some of the generated VS projects. Looking into it.
from libtins.
I'm trying to compile the latest sources using VS2013 targeting x64, but I'm getting compilation errors in include/tins/internals.h. VS2013 doesn't like this template:
template <class T, class P, class=void>
struct accepts_type : std::false_type { };
template <class T, class P>
struct accepts_type<T, P,
typename std::enable_if<
std::is_same< decltype( std::declval<T>()(std::declval<P>()) ), bool>::value
>::type
> : std::true_type { };
Which would be a bug (or lack of support) in VS2013, as it compiles fine elsewhere.
However, I'm getting this even when configuring with LIBTINS_ENABLE_CXX11=0. It seems the TINS_IS_CXX11 definition in cxxstd.h does not check the HAVE_CXX11 macro from config.h.
Hi, I am trying to compile it on windows I have cmake, installing vs2017 community with c++ support now and I have MinGW g++ and gcc also. Can you help?
from libtins.
What is the problem?
from libtins.
Okay that issue was solved
from libtins.
Related Issues (20)
- Unable to compile Libtins for AIX
- how to call the Stream::user_data() to set and get the custom data ? HOT 1
- IPv6Address::to_string() return a local address HOT 1
- Error: live packet capture not supported on this system
- libtins.so.4.5: cannot open shared object file: No such file or directory HOT 1
- libtins 4.4 conan recipe is conan2.0 incompatible HOT 1
- Multicast packet ( specifically fieldbus) is not parsed
- Tagging a new release / fixup release with GCC 13 patch HOT 1
- 'unresolved external symbol' in Visual Studio 2022 HOT 3
- add #496 in the release notes for v4.5
- Send SYN packet failed on Windows 10 HOT 8
- Any passthru example?
- [bug] UDP::matches_response() return 0 when no inner PDU is available
- How to get gateway? HOT 1
- matches_response() implementation for EthernetII / Dot3
- DataTracker::advance_sequence removes too much data
- Seeing "android ifaddr not supported" regardless of Android version HOT 1
- failures with gtest 1.13+ HOT 1
- wrong "enum OptionTypes" definition HOT 2
- How to dump packets after streamfollower processing?
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 libtins.