Skip to content

Commit 78e8961

Browse files
update CMakeLists.txt
1 parent 3701cd5 commit 78e8961

File tree

4 files changed

+21
-40
lines changed

4 files changed

+21
-40
lines changed

.ssh

Lines changed: 0 additions & 38 deletions
This file was deleted.

.ssh.pub

Lines changed: 0 additions & 1 deletion
This file was deleted.

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ add_executable(testC test.cpp)
1515

1616
target_link_libraries(testC ${RapidJSON_LIBS})
1717
target_link_libraries(testC libmuduo_net.a libmuduo_base.a)
18+
target_link_libraries(testC libnanodbc.a)

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,25 @@ sudo make install #generate lib files and put them in /usr/lib(maybe)
5959

6060
## Compile nanodbc
6161

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+
6281
```bash
6382
git clone <https://github.com/nanodbc/nanodbc.git> #download nanodbc
6483

@@ -117,6 +136,6 @@ cp * ../../../cids-servsers/lib #put lib file to projectPath/lib
117136
- base
118137
- nanodbc
119138
- lib
120-
- libxxx.a #10 lib files
139+
- libxxx.a #7/10 lib files
121140

122141

0 commit comments

Comments
 (0)