mlpack / ensmallen

A header-only C++ library for numerical optimization --
http://ensmallen.org
Other
742 stars 120 forks source link

Compiling errors ensmallen 02.18.02 using VS2019 armadillo.lib 10.08.02 and mlpack.lib 03.04.02 #339

Closed giofum closed 2 years ago

giofum commented 2 years ago

Hello everybody! Has anyone of you experimented this problem, or similar? I've correctly built armadillo and mlpack, but trying to compile a mlpack example leads to this:

Gravità Codice Descrizione Progetto File Riga Stato eliminazione Errore C2672 'core::v2::meta::all': non sono state trovate funzioni in overload corrispondenti RNNLib d:\mlpack_build2\bin\include\mlpack\core\std_backport\algorithm.hpp 316 Errore C2975 'Bs': argomento di modello non valido per 'core::v2::meta::all'. Prevista espressione costante in fase di compilazione RNNLib d:\mlpack_build2\bin\include\mlpack\core\std_backport\algorithm.hpp 316 Errore C2672 'core::v2::meta::none': non sono state trovate funzioni in overload corrispondenti RNNLib d:\mlpack_build2\bin\include\mlpack\core\std_backport\algorithm.hpp 337 Errore C2975 'core::v2::meta::none': argomento di modello non valido per 'Bs'. Prevista espressione costante in fase di compilazione RNNLib d:\mlpack_build2\bin\include\mlpack\core\std_backport\algorithm.hpp 337 Errore C2672 'core::v2::meta::all': non sono state trovate funzioni in overload corrispondenti RNNLib d:\mlpack_build2\bin\include\mlpack\core\std_backport\algorithm.hpp 417 Errore C2975 'Bs': argomento di modello non valido per 'core::v2::meta::all'. Prevista espressione costante in fase di compilazione RNNLib d:\mlpack_build2\bin\include\mlpack\core\std_backport\algorithm.hpp 417 Errore C2672 'core::v2::meta::none': non sono state trovate funzioni in overload corrispondenti RNNLib d:\mlpack_build2\bin\include\mlpack\core\std_backport\algorithm.hpp 435 Errore C2975 'core::v2::meta::none': argomento di modello non valido per 'Bs'. Prevista espressione costante in fase di compilazione RNNLib d:\mlpack_build2\bin\include\mlpack\core\std_backport\algorithm.hpp 435 Errore C2672 'core::v2::meta::all': non sono state trovate funzioni in overload corrispondenti RNNLib d:\mlpack_build2\bin\include\mlpack\core\std_backport\algorithm.hpp 859 Errore C2975 'Bs': argomento di modello non valido per 'core::v2::meta::all'. Prevista espressione costante in fase di compilazione RNNLib d:\mlpack_build2\bin\include\mlpack\core\std_backport\algorithm.hpp 859

shrit commented 2 years ago

Are you using RNNLib? It is not able to find the overload for RNNlLib, we do not use this library in mlpack.

giofum commented 2 years ago

RNNLib is the name of my library, unfortunately probably the same of an existent one

shrit commented 2 years ago

May I ask how are you compiling mlpack? or did you do that already? because you are mentioning that you are compiling an example?

zoq commented 2 years ago

I'm not sure I can see the connection with ensmallen here, unless I missed something, can you close this issue and open it in mlpack/mlpack and use one of the issue templates, which asks for some additional information, that helps us a lot in figuring out what the issue could be.

giofum commented 2 years ago

Re: May I ask how are you compiling mlpack? or did you do that already? because you are mentioning that you are compiling an example?

At first i've generated MLPack-INSTALL.vcxproj with cmake then built it. I'm new in this kind or compiling via cmake, so i'm sure i am missing something of doing something wrong

giofum commented 2 years ago

Re: I'm not sure I can see the connection with ensmallen here, unless I missed something, can you close this issue and open it in mlpack/mlpack and use one of the issue templates, which asks for some additional information, that helps us a lot in figuring out what the issue could be.

ok