Thanks for the info!
Would you mind to pass the following flags to the C++ compiler and see how it goes:
Concerning the linker, pass the following:
and remove (in the linker) the following libraries since they are not needed (at least by HDFql):
Please take a look at section 3.2 in HDFql reference manual for a detailed explanation on how to compile a C++ using HDFql static and shared libraries.
Concerning your questions, there is no need to move HDFql directory to another location or change from x64 to x86 as HDFql supports 64 bit architectures (unless you wish to compile your C++ in 32 bit; in that case, yes, you need to change to x86 and download HDFql 32 bit distribution package).
Hope this helps!