Skip to content

Commit b12b24f

Browse files
Added Mingw Instructions
Added Instructions to help build with Mingw64.
1 parent b782bd2 commit b12b24f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,20 @@ cd vcpkg
328328
The restclient-cpp port in vcpkg is kept up to date by Microsoft team members and community contributors.
329329
If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
330330

331+
Another option is to use Mingw64 and CMake to compile on Windows. This requires you to have [Mingw64](https://www.mingw-w64.org/) installed with [CMake](https://cmake.org/download/) and [libCurl](https://curl.se/windows/) (MSYS2 would also work fine).
332+
333+
```bash
334+
# Make sure cmake, mingw32-make and g++ are in PATH
335+
# Clone the repo
336+
git clone https://github.com/mrtazz/restclient-cpp && cd restclient-cpp
337+
# Build library
338+
mkdir build && cd build
339+
# Run cmake
340+
cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CC_COMPILER=gcc -DCMAKE_MAKE_PROGRAM=mingw32-make -G "MinGW Makefiles" ..
341+
# Builds the dll.a lib and dll file
342+
mingw32-make
343+
```
344+
331345
## Contribute
332346
All contributions are highly appreciated. This includes filing issues,
333347
updating documentation and writing code. Please take a look at the

0 commit comments

Comments
 (0)