1 year ago
#116463
matej drenjančevič
Visual studio 2019 soloud library implementation unresolved external symbol errors
so, I am trying to implement this API: https://sol.gfxile.net/soloud/ So far I downloaded the project, added the lib folder to libraries, wrote a simple test program, tried compiling, and I just get bunch of linker errors saying "unresolved external symbol". I tried checking if there were any .dll and/or .lib files, but there are none. IDK what I'm doing wrong, this is already 3rd library I tried implementing(as out of boredom I'm working on 3 simultaneous small projects), and I failed miserably in all of them. Could someone please help me?
My code to test out the library:
#include "soloud.h"
#include "soloud_wav.h"
#include <iostream>
#include <string>
#define WITH_MINIAUDIO
#define SOLOUD_NO_ASSERTS
int main() {
std::string path;
std::cin >> path;
SoLoud::Soloud soloud; // Engine core
SoLoud::Wav sample; // One sample
// Initialize SoLoud (automatic back-end selection)
soloud.init();
sample.load(path.c_str()); // Load a wave file
soloud.play(sample); // Play it
soloud.deinit();
return 0;
}
one of the errors:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: __cdecl SoLoud::AlignedFloatBuffer::AlignedFloatBuffer(void)" (??0AlignedFloatBuffer@SoLoud@@QEAA@XZ) referenced in function "public: __cdecl SoLoud::Soloud::Soloud(void)" (??0Soloud@SoLoud@@QEAA@XZ) Console Audio Player C:\Users\Matej\source\repos\Console Audio Player\Console Audio Player\Source.obj 1
c++
visual-studio
visual-studio-2019
unresolved-external
0 Answers
Your Answer