Giter Club home page Giter Club logo

Comments (7)

mfontanini avatar mfontanini commented on June 7, 2024

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.

mfontanini avatar mfontanini commented on June 7, 2024

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.

mfontanini avatar mfontanini commented on June 7, 2024

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.

blazeable avatar blazeable commented on June 7, 2024

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.

walidfaour avatar walidfaour commented on June 7, 2024

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.

mfontanini avatar mfontanini commented on June 7, 2024

What is the problem?

from libtins.

walidfaour avatar walidfaour commented on June 7, 2024

Okay that issue was solved

from libtins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.