# HDFql Installation/Compiling Error - linker unable to find C++ wrapper libraries

**URL:** <https://forum.hdfgroup.org/t/hdfql-installation-compiling-error-linker-unable-to-find-c-wrapper-libraries/8638>\
**Category:** HDFql\
**Created:** [June 24, 2021, 11:10am UTC](https://forum.hdfgroup.org/t/hdfql-installation-compiling-error-linker-unable-to-find-c-wrapper-libraries/8638 "2021-06-24T11:10:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![will.kwon](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/w/b5a626/32.png) [@will.kwon](https://forum.hdfgroup.org/u/will.kwon)\
**Post date:** [June 24, 2021, 11:10am UTC](https://forum.hdfgroup.org/t/hdfql-installation-compiling-error-linker-unable-to-find-c-wrapper-libraries/8638/1 "2021-06-24T11:10:37Z")

</div>

Hello, I am trying to setup HDFql on Visual Studios 2015 Platform Toolset (C++).

Following the documentation (Section 3.2), I have included the library directory for the C++ wrappers and the include directory in the project properties. I have also specified which libraries to link (HDFql.lib, HDFql\_dll.lib), and added the wrapper path to the PATH environment variable. Here is the full command line argument (HDF5\_PT\_Test.cpp is the file I am trying to compile/execute):

Compiler:  
/GS /GL /analyze- /W3 /Gy /Zc:wchar\_t /Zi /Gm- /O2 /sdl /Fd"Release\vc140.pdb" /Zc:inline /fp:precise /D “WIN32” /D “NDEBUG” /D “\_CONSOLE” /D “\_MBCS” /errorReport:prompt /WX- /Zc:forScope /Gd /Oy- /Oi /MT /Fa"Release" /EHsc /nologo /Fo"Release" /Fp"Release\HDF5\_PT\_Test.pch"

Linker:  
/OUT:“C:\Users\wjd5dj\wkspaces\Release\HDF5\_PT\_Test.exe” /MANIFEST /LTCG /NXCOMPAT /PDB:“C:\Users\wjd5dj\wkspaces\sw\Release\HDF5\_PT\_Test.pdb” /DYNAMICBASE “HDFql.lib” “HDFql\_dll.lib” “libcpmt.lib” “kernel32.lib” “user32.lib” “gdi32.lib” “winspool.lib” “comdlg32.lib” “advapi32.lib” “shell32.lib” “ole32.lib” “oleaut32.lib” “uuid.lib” “odbc32.lib” “odbccp32.lib” /DEBUG /MACHINE:X86 /OPT:REF /SAFESEH /PGD:“C:\Users\wjd5dj\wkspaces\sw\Release\HDF5\_PT\_Test.pgd” /SUBSYSTEM:CONSOLE /MANIFESTUAC:“level=‘asInvoker’ uiAccess=‘false’” /ManifestFile:“Release\HDF5\_PT\_Test.exe.intermediate.manifest” /OPT:ICF /ERRORREPORT:PROMPT /NOLOGO /LIBPATH:“C:\Users\wjd5dj\wkspaces\sw\HDF5\_Lib\lib” /LIBPATH:"…\hdfql-2.4.0\wrapper\cpp" /LIBPATH:“C:\Users\wjd5dj\wkspaces\sw” /TLBID:1

I am running in Release (Win32) mode, and get this error:  
Build started…  
1\>------ Build started: Project: HDF5\_PT\_Test, Configuration: Release Win32 ------  
1\>HDF5\_PT\_Test.cpp  
1\>HDF5\_PT\_Test.obj : error LNK2001: unresolved external symbol “int \_\_cdecl HDFql::execute(char const \*)” (?execute@HDFql@@YAHPBD@Z)  
1\>HDF5\_PT\_Test.obj : error LNK2001: unresolved external symbol “int \* \_\_cdecl HDFql::cursorGetInt(class HDFql::Cursor const \*)” (?cursorGetInt@HDFql@@YAPAHPBVCursor@1@@Z)  
1\>HDF5\_PT\_Test.obj : error LNK2001: unresolved external symbol “int \_\_cdecl HDFql::cursorFirst(class HDFql::Cursor \*)” (?cursorFirst@HDFql@@YAHPAVCursor@1@@Z)  
1\>C:\Users\wjd5dj\wkspaces\10033853\_Hybrid\_Tracker\F360Core\sw\Release\HDF5\_PT\_Test.exe : fatal error LNK1120: 3 unresolved externals  
1\>Done building project “HDF5\_PT\_Test.vcxproj” – FAILED.  
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I understand that this probably means that the linker has not found the HDFql .lib files, but I have included the paths in everywhere I possible could in visual studios - could someone help me out with this issue please?
