青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

牽著老婆滿街逛

嚴(yán)以律己,寬以待人. 三思而后行.
GMail/GTalk: yanglinbo#google.com;
MSN/Email: tx7do#yahoo.com.cn;
QQ: 3 0 3 3 9 6 9 2 0 .

Accessing SQLite databases in C++ using SOCI

轉(zhuǎn)載自:http://jameswynn.com/2009/10/accessing-sqlite-databases-in-c-using-soci/

I recently decided to use SOCI and SQLite at work and found that neither there is not a super straight forward path for setting this up. As of SOCI version 3.0.0 there is no support for Visual Studio 2008, so I had to convert and fix a few bugs resulting from that. There were some path issues as well. Also they don't package the SQLite interface with SOCI so you have to checkout the repo to get access to it. After getting that there are still a few snags, not to mention actually setting up SQLite as a library.

[Updated: 10/13/2009]
After writing this article the SOCI team has resolved some of these issues, so some of these steps are no longer necessary.

Step 1: Setup SQLite

Step 1.1

Download the SQLite 3.6.18 source and library files.

Step 1.2:

Unarchive the SQLite archives into a directory, mine will be c:\usr\sqlite3

Step 1.3:

Create the sqlite3.lib file by using Visual Studio's lib command:

LIB /DEF:sqlite3.def


Step 2: Setup SOCI

Step 2.1:

Download the head of SOCI's git repository

Step 2.2:

Decompress the file into another directory, mine will be c:\usr\soci

Step 2.3:

Soci requires stdint.h but Visual Studio 2008 does not provide it, so simply download pstdint.h and rename it to stdint.h in the soci\src\core directory.

Step 2.4:

Open the directory soci\build and copy msvc80 to msvc90.

Now open the msvc90\dll directory.

Through Visual Studio 2008, open the soci_dll.sln file and allow it to convert it with the default parameters.

Step 2.5: Build SOCI's Core and SQLite3

SOCI's core project should build without errors, but the sqlite project will have several.

Step 2.6: Fixing Build Errors

Now SOCI's core project should build without errors, but the sqlite3 project will definitely fail. It will give two specific errors:

fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory

and

error C3163: '_vsnprintf': attributes inconsistent with previous declaration

Both are relatively easy to fix.

Step 2.6.1: Fixing SQLite3 include paths

In Visual Studio, navigate to View->Property Manager, then in the pane that shows up, expand the sqlite3 project, then expand "Debug | Win32" then "soci_dll" then double-click on the "soci" object. Select "User Macros" on the sheet you find there.

Find SQLITE3_INCLUDE_DIR and SQLITE_LIB_DIR and change them to the directory created earlier, "c:\usr\sqlite3"

Step 2.6.2: Fixing _vsnprintf

[Update 10/13/2009]
This step is no longer needed.

Expand the core project and look for soci-platform.h and find a line that says "HAVE_VSNPRINTF"

This is redefining something that VS2008 provides already and confuses the hell out of the compiler. Just comment it out, or change it to look like:

// Define if you have the vsnprintf variants.
#if _MSC_VER < 1500
#    define HAVE_VSNPRINTF 
1
#    define vsnprintf _vsnprintf
#endif

Step 2.7 Building SOCI's sqlite3_test project

This project will be riddled with errors unless you have boost installed. I personally don't use it, so had to comment out large chunks of common-tests.h.  Specifically, comment out the area at the top where it includes the boost headers. Also comment out the contents of test26, test28 and test30.

Also add this line at the bottom of soci-platform.h:

#undef SOCI_USE_BOOST

 

Finished

Now you should have a working copy of SOCI 3.0.0 with SQLite3 support in Visual Studio 2008. Congratulations!


posted on 2009-11-27 13:47 楊粼波 閱讀(1649) 評(píng)論(0)  編輯 收藏 引用


只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美亚洲色图校园春色| 欧美—级a级欧美特级ar全黄| 日韩午夜激情电影| 久久久国产精品亚洲一区 | 午夜精品久久久久久久久久久久| 欧美日韩一区二区三区四区在线观看 | 国产在线观看精品一区二区三区| 午夜精品亚洲一区二区三区嫩草| 亚洲欧美国产一区二区三区| 国产精品久久久久久久久久妞妞| 亚洲美女色禁图| 一区二区三区免费看| 欧美日韩国产精品一区| 夜夜嗨av一区二区三区中文字幕 | 在线中文字幕一区| 亚洲欧美中文日韩v在线观看| 亚洲韩国青草视频| 欧美风情在线观看| 夜夜夜精品看看| 欧美国产日韩xxxxx| 一本久道久久综合婷婷鲸鱼| 国产精品久久久久9999高清| 欧美一区二区三区四区在线观看地址 | 中文亚洲欧美| 亚洲精品少妇30p| 亚洲欧美中文在线视频| 一区二区三区四区国产精品| 亚洲精品一区二区三区蜜桃久| 欧美日韩在线一区| 久久精品麻豆| 香蕉国产精品偷在线观看不卡| 夜夜狂射影院欧美极品| 99视频国产精品免费观看| 亚洲国产天堂久久综合网| 欧美成人午夜激情视频| 99在线精品视频在线观看| 亚洲黄色有码视频| 欧美一区二区三区视频免费播放| 在线日本高清免费不卡| 欧美黑人多人双交| 欧美另类视频在线| 久久精品视频播放| 久久精品在这里| 久久天堂成人| 一本色道精品久久一区二区三区| 久久久久九九九九| 日韩一级在线| 在线一区二区视频| 羞羞色国产精品| 久久最新视频| 亚洲图中文字幕| 亚洲国产高清一区| 国产婷婷色一区二区三区在线| 欧美成人黑人xx视频免费观看| 欧美高清免费| 国产精品国产三级国产a| 国产精品久久久久aaaa| 国产午夜久久久久| 伊人男人综合视频网| 国产精品美女在线观看| 国产日韩久久| 亚洲国内精品| 亚洲一二三四久久| 在线视频精品一区| 欧美亚洲免费| 欧美www视频| 久久久99免费视频| 欧美多人爱爱视频网站| 欧美www视频| 亚洲最新在线| 久久久久久久性| 久久国内精品视频| 欧美在线在线| 久久av最新网址| 欧美国产免费| 国产热re99久久6国产精品| 欧美午夜精品久久久久免费视 | 久久野战av| 欧美日韩在线观看一区二区三区| 国产一区二区按摩在线观看| 国产欧美一区二区三区国产幕精品| 影音先锋久久| 性欧美大战久久久久久久免费观看| 狼人社综合社区| 一区二区av在线| 久久在线视频| 美女精品国产| 欧美精品久久99| 国产日韩三区| 中日韩高清电影网| 巨乳诱惑日韩免费av| 一本色道**综合亚洲精品蜜桃冫| 久久久久网址| 国产精品人成在线观看免费| 国产精品免费一区二区三区在线观看 | 国产揄拍国内精品对白| 中国亚洲黄色| 亚洲激情图片小说视频| 性欧美在线看片a免费观看| 欧美精品久久久久久久| 一区在线免费观看| 亚洲国产精品第一区二区三区| 亚洲欧美一区二区三区极速播放 | 久久久久久午夜| 麻豆精品在线视频| 亚洲影院一区| 欧美亚洲三区| 国产精品久久二区| 日韩一区二区免费看| 女女同性女同一区二区三区91| 午夜精品久久| 欧美高清视频免费观看| 伊人久久大香线蕉综合热线| 欧美中文日韩| 欧美高清一区| 久久久亚洲精品一区二区三区| 国产欧美日韩在线视频| 亚洲愉拍自拍另类高清精品| 久久久久九九九九| 欧美一区二区精品在线| 国产精品一区二区在线观看网站 | 国产乱人伦精品一区二区| 在线亚洲电影| 亚洲毛片网站| 欧美日韩高清在线播放| 日韩视频永久免费| 欧美一区二区三区播放老司机| 夜夜嗨av一区二区三区网站四季av| 欧美精品一区二区三区高清aⅴ| 亚洲人成77777在线观看网| 亚洲欧美在线网| 亚洲午夜国产成人av电影男同| 久久美女性网| 在线观看日韩专区| 欧美 日韩 国产一区二区在线视频| 久久全球大尺度高清视频| 在线观看国产欧美| 欧美福利在线| 欧美aaa级| 一区二区视频免费完整版观看| 久久婷婷av| 亚洲性xxxx| 国产日韩精品一区二区三区| 久久av在线| 久久久国产精品一区| 亚洲日本成人女熟在线观看| 亚洲国产综合在线看不卡| 欧美区二区三区| 亚洲一区二区三区在线播放| 亚洲一区久久| 国产专区综合网| 欧美国产三区| 欧美色偷偷大香| 久久国产直播| 亚洲一区二区免费看| 国产欧美一区二区三区在线看蜜臀| 久久久www成人免费毛片麻豆| 久久精品国产欧美亚洲人人爽| 亚洲国产精品日韩| 亚洲美女精品久久| 国产精品亚洲第一区在线暖暖韩国| 欧美尤物巨大精品爽| 久久精品日韩欧美| 日韩视频免费观看| 亚洲无限av看| 伊人久久综合97精品| 日韩亚洲一区二区| 国产欧美精品| 亚洲二区视频在线| 久久综合久久美利坚合众国| av成人国产| 久久精品男女| 99热免费精品| 欧美一区二区日韩一区二区| 亚洲人成在线观看网站高清| 亚洲一区二区三区精品动漫| 亚洲成人在线观看视频| av成人动漫| 亚洲第一视频网站| 亚洲性图久久| 亚洲国内自拍| 香蕉久久精品日日躁夜夜躁| 亚洲精品欧洲| 久久久精彩视频| 亚洲免费人成在线视频观看| 久久亚洲综合色| 欧美一区二区在线观看| 欧美激情综合五月色丁香小说 | av不卡在线观看| 亚洲高清资源综合久久精品| 亚洲天堂免费观看| 亚洲精品久久久久久久久| 欧美伊人久久| 亚洲一区二区三区四区视频| 免费在线亚洲| 久久亚洲二区| 国产一二三精品| 亚洲午夜精品久久久久久浪潮| 亚洲激情一区二区| 久久久国产亚洲精品|