You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`choco install llvm` (or install the `C++ Clang tools for Windows` optional package from the Visual Studio 2019 installer)
132
-
*`choco install make` (or if you have MinGW, it comes bundled)
133
-
134
-
1. Ensure that `Clang` and `make` are in your system path.
135
-
2. Using Git Bash, clone the repo to your preferred location.
136
-
3. Cd into the cloned directory and run `npm install`
137
-
5. Run `make`
138
-
6. Your `repo/build` directory should now have `libllhttp.a` and `libllhttp.so` static and dynamic libraries.
139
-
7. When building your executable, you can link to these libraries. Make sure to set the build folder as an include path when building so you can reference the declarations in `repo/build/llhttp.h`.
140
-
141
-
### A simple example on linking with the library:
142
-
143
-
Assuming you have an executable `main.cpp` in your current working directory, you would run: `clang++ -Os -g3 -Wall -Wextra -Wno-unused-parameter -I/path/to/llhttp/build main.cpp /path/to/llhttp/build/libllhttp.a -o main.exe`.
144
-
145
-
If you are getting `unresolved external symbol` linker errors you are likely attempting to build `llhttp.c` without linking it with object files from `api.c` and `http.c`.
146
-
147
95
#### LICENSE
148
96
149
97
This software is licensed under the MIT License.
@@ -177,6 +125,3 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
0 commit comments