File tree Expand file tree Collapse file tree 4 files changed +21
-40
lines changed Expand file tree Collapse file tree 4 files changed +21
-40
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ add_executable(testC test.cpp)
15
15
16
16
target_link_libraries (testC ${RapidJSON_LIBS} )
17
17
target_link_libraries (testC libmuduo_net.a libmuduo_base.a)
18
+ target_link_libraries (testC libnanodbc.a)
Original file line number Diff line number Diff line change @@ -59,6 +59,25 @@ sudo make install #generate lib files and put them in /usr/lib(maybe)
59
59
60
60
## Compile nanodbc
61
61
62
+ Before you compile nanodbc, you should download UnixOdbc:
63
+
64
+ download unixODBC-2.3.0.tar.gz
65
+
66
+ ``` bash
67
+ tar -xzvf unixODBC-2.3.0.tar.gz
68
+
69
+ cd unixODBC-2.3.0.tar.gz
70
+
71
+ ./configure --enable-gui=no
72
+
73
+ make
74
+
75
+ sudo make install
76
+
77
+ odbc_config --version # check odbc_config is installed
78
+
79
+ ```
80
+
62
81
``` bash
63
82
git clone < https://github.com/nanodbc/nanodbc.git> # download nanodbc
64
83
@@ -117,6 +136,6 @@ cp * ../../../cids-servsers/lib #put lib file to projectPath/lib
117
136
- base
118
137
- nanodbc
119
138
- lib
120
- - libxxx.a #10 lib files
139
+ - libxxx.a #7 / 10 lib files
121
140
122
141
You can’t perform that action at this time.
0 commit comments