vinniefalco / DSPFilters

A Collection of Useful C++ Classes for Digital Signal Processing
1.83k stars 375 forks source link

Not compilable with Visual Studio 2019 #55

Open KrisTiasMusic opened 4 years ago

KrisTiasMusic commented 4 years ago

Hey DSP community,

I currently have a problem compiling with Visual Studio 2019 that causes the following error message:

Severity Code Description Project File Line Suppression State Error MSB8020 The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". DSPFiltersDemo C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets 379

These build tools are not available for VS 2019. Is support for Visual Studio 2019 expected in the foreseeable future? I'd love to do this myself, but I'm too inexperienced in C++ to do it on my own.

Rakib1503052 commented 3 years ago

Open a new project in Visual Studio 2019 and then add the folders manually. Or just copy all header and source files in one directory, edit the includes appropriately and compile.

rerdavies commented 2 years ago

Follow the instructions in the error message:

... you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution.

There are some additional problems with tr1-compatibility, Just map the tr1 namespace to std (VS 2019 no longer has this problem). And some minor problems with broken syntax (convert the "zero length array" declaration to a pointer declaration). Other than that it seems to work fine.