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
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/resources/C-libcurl/README.md.mustache
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
14
14
{{/infoUrl}}
15
15
16
16
## Installation
17
-
You'll need the `curl 7.58.0` package in order to build the API. To have code formatted nicely you also need to have uncrustify version 0.67.
17
+
You'll need the `curl 7.58.0` package in order to build the API. To have code formatted nicely, you also need to have uncrustify version 0.67 or later.
18
18
19
19
# Prerequisites
20
20
@@ -40,11 +40,11 @@ sudo make install
40
40
```
41
41
42
42
## Compile the sample:
43
-
This will compile the generated code and create a library in build folder which has to be linked to the codes where API will be used.
43
+
This will compile the generated code and create a library in the build folder which has to be linked to the codes where API will be used.
44
44
```bash
45
45
mkdir build
46
46
cd build
47
-
// To install library to specific location use following command
47
+
// To install library to specific location, use following commands
48
48
cmake -DCMAKE_INSTALL_PREFIX=/pathtolocaiton ..
49
49
// for normal install use following command
50
50
cmake ..
@@ -58,11 +58,11 @@ To compile main.c(considering the file is present in build folder) use following
58
58
-L - locaiton of the library(not required if cmake with normal installation is performed)
59
59
-l library name
60
60
```bash
61
-
gcc main.c -L. -lpetstore -o main
61
+
gcc main.c -L. -l{{projectName}} -o main
62
62
```
63
-
once compile, you can run it with ``` ./main ```
63
+
Once compiled, you can run it with ``` ./main ```
64
64
65
-
Note: You dont need to specify includes for models and include folder seperately as they are path linked. You just have to import the api.h file in your code, the include linking will work.
65
+
Note: You don't need to specify includes for models and include folder seperately as they are path linked. You just have to import the api.h file in your code, the include linking will work.
You'll need the `curl 7.58.0` package in order to build the API. To have code formatted nicely you also need to have uncrustify version 0.67.
11
+
You'll need the `curl 7.58.0` package in order to build the API. To have code formatted nicely, you also need to have uncrustify version 0.67 or later.
12
12
13
13
# Prerequisites
14
14
@@ -34,11 +34,11 @@ sudo make install
34
34
```
35
35
36
36
## Compile the sample:
37
-
This will compile the generated code and create a library in build folder which has to be linked to the codes where API will be used.
37
+
This will compile the generated code and create a library in the build folder which has to be linked to the codes where API will be used.
38
38
```bash
39
39
mkdir build
40
40
cd build
41
-
// To install library to specific location use following command
41
+
// To install library to specific location, use following commands
42
42
cmake -DCMAKE_INSTALL_PREFIX=/pathtolocaiton ..
43
43
// for normal install use following command
44
44
cmake ..
@@ -52,11 +52,11 @@ To compile main.c(considering the file is present in build folder) use following
52
52
-L - locaiton of the library(not required if cmake with normal installation is performed)
53
53
-l library name
54
54
```bash
55
-
gcc main.c -L. -lpetstore -o main
55
+
gcc main.c -L. -lopenapi_petstore -o main
56
56
```
57
-
once compile, you can run it with ``` ./main ```
57
+
Once compiled, you can run it with ``` ./main ```
58
58
59
-
Note: You dont need to specify includes for models and include folder seperately as they are path linked. You just have to import the api.h file in your code, the include linking will work.
59
+
Note: You don't need to specify includes for models and include folder seperately as they are path linked. You just have to import the api.h file in your code, the include linking will work.
0 commit comments