[smartmontools-support] Compiling smartctl on Windows
Christian Franke
Christian.Franke at t-online.de
Wed Apr 27 19:36:06 CEST 2022
Eaton Zveare wrote:
> Yes, you are right, config.h inside os_win32\vc16 has those defines
> commented out.
> Despite that, the build fails. It appears VS 2022 is referencing the
> config.h from the root folder instead of the one inside vc16.
> In the Solution Explorer, the config.h file there is the vc16 version,
> so I'm not sure why it's using the other one in the root.
> When I replace the root config.h with the vc16 copy, it fixes the
> problem right away.
Did you possibly run ./configure instead of ../configure? If yes, there
is also config.log and a Makefile in the root folder (aka $srcdir).
See INSTALL file:
The configure script must be run outside of the source directory to
avoid inclusion of the original config.h.
More information about the Smartmontools-support
mailing list