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: lib_acl_cpp/samples/disque/README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,16 +141,18 @@ int main(void)
141
141
```
142
142
143
143
### add acl disque to your projects
144
-
Before you use the acl disque, you should compile the three base libraries which disque depending on. Enter the lib_acl, lib_protocol, lib_acl_cpp, and build the lib_acl.a, lib_protocol.a and lib_acl_cpp.a.
144
+
Before you use the acl disque, you should compile the three base libraries which disque depending on. Enter the ** lib_acl, lib_protocol, lib_acl_cpp,** and build the lib_acl.a, lib_protocol.a and lib_acl_cpp.a.
145
+
```compile
145
146
$cd lib_acl; make
146
147
$cd lib_protocol; make
147
148
$cd lib_acl_cpp; make
149
+
```
148
150
149
151
#### On UNIX/LINUX
150
152
In your Makefile, you should add below compiling flags:
151
153
-DLINUX2 for LINUX, -DFREEBSD for FreeBSD, -DMACOSX for MAXOS, -DSUNOS5 for Solaris X86;
152
154
-I path specify the lib_acl.hpp's parent path, for exmaple: -I./lib_acl_cpp/include, in the lib_acl_cpp/include path the acl_cpp path should be included;
153
-
At last, link with -L{path_to_acl_cpp} -l_acl_cpp -L{path_to_protocol} -l_protocol -L{path_to_acl) -l_acl
155
+
At last, link with **-L{path_to_acl_cpp} -l_acl_cpp -L{path_to_protocol} -l_protocol -L{path_to_acl) -l_acl**
154
156
Of couse you can look at the Makefile.in in lib_acl_cpp\samples and Makfile in lib_acl_cpp\samples\disque\ to find the build conditions.
155
157
One Makefile as below:
156
158
```Makefile
@@ -169,7 +171,7 @@ main.o: main.cpp
169
171
gcc $(CFLAGS) main.cpp -o main.o
170
172
```
171
173
### On WIN32
172
-
Open acl_cpp_vc2003.sln/acl_cpp_vc2008.sln/acl_cpp_vc2010.sln/acl_cpp_vc2012.sln, and looat at the disque samples project option setting.
174
+
Open acl_cpp_vc2003.sln/acl_cpp_vc2008.sln/acl_cpp_vc2010.sln/acl_cpp_vc2012.sln, and look at at the disque samples project option setting.
173
175
174
176
## reference
175
177
-disqueincludeinacl: [disque include files](../../include/acl_cpp/disque/)
Copy file name to clipboardExpand all lines: lib_acl_cpp/samples/redis/README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ The header files of acl redis are in lib_acl_cpp\include\acl_cpp\redis; the sour
8
8
Because acl redis lib is a part of lib_acl_cpp lib, and lib_acl_cpp depend lib_acl and lib_protocol, you should compile lib_acl and lib_protocol libs first, and compile lib_acl_cpp lib. After you've compiled lib_acl_cpp lib, the redis lib is also compiled OK.
9
9
10
10
### compile on UNIX/LINUX
11
-
- 1 compile lib_acl.a: Enter into lib_acl path and type make, the lib_acl.a will be compiled
12
-
- 2 compile lib_protocol.a: Enter into lib_protocol path and type make, the lib_protocol.a will be compiled
13
-
- 3 compile lib_acl_cpp.a: Enter into lib_acl_cpp path and type make, the lib_acl_cpp.a will be compiled
11
+
- 1 compile **lib_acl.a**: Enter into lib_acl path and type make, the lib_acl.a will be compiled
12
+
- 2 compile **lib_protocol.a**: Enter into lib_protocol path and type make, the lib_protocol.a will be compiled
13
+
- 3 compile **lib_acl_cpp.a**: Enter into lib_acl_cpp path and type make, the lib_acl_cpp.a will be compiled
14
14
- 4 compile redis samples: Enter into lib_acl_cpp\samples\redis and type make, all the redis samples(including redis_cluster, redis_connection, redis_hash, redis_hyperloglog, redis_key, redis_lib, redis_manager, redis_pool, redis_pubsub, redis_server, redis_set, redis_string, redis_trans, redis_zset, redis_zset_pool, redis_client_cluster) will be compiled.
15
15
16
16
### compile on WINDOWS
@@ -214,10 +214,12 @@ int main(void)
214
214
```
215
215
216
216
### add acl redis to your projects
217
-
Before you use the acl redis, you should compile the three base libraries which redis depending on. Enter the lib_acl, lib_protocol, lib_acl_cpp, and build the lib_acl.a, lib_protocol.a and lib_acl_cpp.a.
217
+
Before you use the acl redis, you should compile the three base libraries which redis depending on. Enter the lib_acl, lib_protocol, lib_acl_cpp, and build the ** lib_acl.a, lib_protocol.a and lib_acl_cpp.a **.
218
+
```compile
218
219
$cd lib_acl; make
219
220
$cd lib_protocol; make
220
221
$cd lib_acl_cpp; make
222
+
```
221
223
222
224
#### On UNIX/LINUX
223
225
In your Makefile, you should add below compiling flags:
@@ -242,7 +244,7 @@ main.o: main.cpp
242
244
gcc $(CFLAGS) main.cpp -o main.o
243
245
```
244
246
### On WIN32
245
-
Open acl_cpp_vc2003.sln/acl_cpp_vc2008.sln/acl_cpp_vc2010.sln/acl_cpp_vc2012.sln, and looat at the redis samples project option setting.
247
+
Open acl_cpp_vc2003.sln/acl_cpp_vc2008.sln/acl_cpp_vc2010.sln/acl_cpp_vc2012.sln, and look at at the redis samples project option setting.
246
248
247
249
## reference
248
250
-redisincludeinacl: [redis include files](../../include/acl_cpp/redis/)
0 commit comments