Skip to content

Commit 68f4bd5

Browse files
authored
docs(readme): add build commands
Add Linux and MSVC compilation examples that match the install layout.
1 parent fabb7ae commit 68f4bd5

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

README-RU.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,18 @@ int main() {
318318
ранние проверки могут выдать информацию через побочные каналы времени
319319
выполнения.
320320

321+
Скомпилировать пример вручную после установки:
322+
323+
```bash
324+
g++ example.cpp -std=c++11 -Iinclude -Llib -lhmac_cpp
325+
```
326+
327+
Для MSVC:
328+
329+
```bat
330+
cl /EHsc example.cpp /I include /link libhmac_cpp.lib
331+
```
332+
321333
## 📚 Полезные ссылки
322334

323335
* Исходный код [SHA256](http://www.zedwood.com/article/cpp-sha256-function)

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,18 @@ int main() {
360360
longer for longer inputs. Avoid checking lengths separately—early length
361361
comparisons can leak information through timing side channels.
362362

363+
Build the example manually after installation:
364+
365+
```bash
366+
g++ example.cpp -std=c++11 -Iinclude -Llib -lhmac_cpp
367+
```
368+
369+
Using MSVC:
370+
371+
```bat
372+
cl /EHsc example.cpp /I include /link libhmac_cpp.lib
373+
```
374+
363375
## 📚 Resources
364376

365377
* Original [SHA256 implementation](http://www.zedwood.com/article/cpp-sha256-function)

0 commit comments

Comments
 (0)