Git Product home page Git Product logo

Comments (2)

conradsnicta avatar conradsnicta commented on June 26, 2024 1

@flyingkukri Based on a quick look, the error may stem from a define/macro conflict. I suspect there may be a #define As somewhere within your codebase, along these lines of `#define As cl_as_aux".

It may be possible to counteract this by undefining the As macro before including mlpack.hpp and ensmallen.hpp
Please try the following:

#undef As
#undef Any
#include <mlpack.hpp> 

from mlpack.

conradsnicta avatar conradsnicta commented on June 26, 2024 1

@flyingkukri The bug seems to be caused by Class Library for Numbers - CLN (https://www.ginac.de/CLN/), which is probably included (directly or indirectly) within your project.

See lines 269 and 274 in the following file, which define a macro named As
https://www.ginac.de/CLN/cln.git/?p=cln.git;a=blob;f=include/cln/number.h;h=67f68899a6926eca49722f012d0a20d159162c57;hb=HEAD#l269

I suggest filing a bug report with the developers of CLN. It's strongly recommended that all macros have a unique prefix, in order to avoid clashes like this. For example, the macro "As" should be defined as "CLN_As".

Alternatively, CLN should clean up after itself, so that all internal macros are undefined at the last point. In other words, there should be an #undef As as the last thing done within the CLN header files.

from mlpack.

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.