diff --git a/src/n8/ast/expression/VariableDeclarationExpression.cpp b/src/n8/ast/expression/VariableDeclarationExpression.cpp index 45c9741..ae6e287 100644 --- a/src/n8/ast/expression/VariableDeclarationExpression.cpp +++ b/src/n8/ast/expression/VariableDeclarationExpression.cpp @@ -80,7 +80,7 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction( else { #if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64) - std::filesystem::path libPath(library); + std::filesystem::path path(library); std::cout << "Loading DLLs from: " << path.parent_path().string() << std::endl; AddDllDirectory(path.parent_path().wstring().c_str());