Compilation failed on Windows. #713

Open
opened 2026-03-13 04:56:10 -05:00 by hezhanbang · 1 comment
hezhanbang commented 2026-03-13 04:56:10 -05:00 (Migrated from github.com)

I tried to compile this open-source library (v1.18.2) using VS2022 with the following command, but the compilation failed (see image below). It seems to be due to a missing libtommath library. Is it possible to disable the libtommath library? How can I resolve this?

nmake -f makefile.msvc default
Image

I tried to compile this open-source library (v1.18.2) using VS2022 with the following command, but the compilation failed (see image below). It seems to be due to a missing libtommath library. Is it possible to disable the libtommath library? How can I resolve this? `nmake -f makefile.msvc default` <img width="1112" height="284" alt="Image" src="https://github.com/user-attachments/assets/5e17fe9b-ef62-4e0e-8220-1f032a126c9d" />
sjlombardo commented 2026-04-06 12:59:15 -05:00 (Migrated from github.com)

@hezhanbang I don't believe you can build for windows without libtommath. This shouldn't be a blocker. Just clone LibTomMath in the same folder as libtomcrypt (i.e. L:\temp2), and make -f makefile.msvc inside the libtommath folder. Once it's built, change back into libtomcrypt and build again. It will automatically pickup libtommath if it's in a parallel folder.

@hezhanbang I don't believe you can build for windows without libtommath. This shouldn't be a blocker. Just clone [LibTomMath](https://github.com/libtom/libtommath) in the same folder as libtomcrypt (i.e. `L:\temp2`), and `make -f makefile.msvc` inside the `libtommath` folder. Once it's built, change back into `libtomcrypt` and build again. It will automatically pickup libtommath if it's in a parallel folder.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libtom/libtomcrypt#713
No description provided.