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

牽著老婆滿街逛

嚴以律己,寬以待人. 三思而后行.
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

轉載自: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) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   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>
            欧美一区二区三区久久精品 | 国产自产2019最新不卡| 在线视频亚洲| 亚洲精品专区| 国产精品劲爆视频| 午夜精品网站| 欧美一区二区视频观看视频| 国内精品久久久久久久影视蜜臀 | 亚洲一区二区在线观看视频| 日韩一区二区精品在线观看| 国产精品v日韩精品v欧美精品网站| 亚洲图片自拍偷拍| 在线视频你懂得一区二区三区| 国产精品久久久久久久久借妻 | 黄色成人av网| 亚洲国产精品日韩| 国产精品地址| 久久天堂精品| 欧美激情精品久久久久久免费印度| 日韩一区二区免费高清| 亚洲午夜精品17c| 黄页网站一区| 亚洲精品美女久久久久| 国产精品试看| 欧美高清在线视频| 欧美亚洲成人网| 久久综合国产精品台湾中文娱乐网| 欧美阿v一级看视频| 亚洲欧美日韩视频一区| 久久躁狠狠躁夜夜爽| 一区二区三区国产精华| 久久久综合网站| 亚洲一区二区三区高清| 老司机精品视频网站| 宅男在线国产精品| 久久久久久亚洲精品不卡4k岛国| 亚洲视频香蕉人妖| 久久久久久亚洲精品杨幂换脸| 亚洲一区二区成人| 久久亚洲色图| 久久高清福利视频| 欧美婷婷六月丁香综合色| 久久在线免费| 国产欧美综合一区二区三区| 亚洲人精品午夜| 激情一区二区| 欧美一区二区黄色| 亚洲一级高清| 欧美高清在线视频| 免费不卡欧美自拍视频| 国产噜噜噜噜噜久久久久久久久| 91久久精品国产91久久性色tv| 国产有码在线一区二区视频| 亚洲天堂成人在线观看| 一本色道久久综合狠狠躁篇怎么玩 | 亚洲精品国产品国语在线app| 国产一区二区欧美| 中文国产一区| 亚洲性夜色噜噜噜7777| 欧美精品v国产精品v日韩精品| 免费不卡欧美自拍视频| 国产在线精品一区二区中文| 欧美亚洲在线播放| 久久久精品日韩| 国产欧美一区二区精品性| 亚洲一区二区毛片| 午夜精品婷婷| 国产欧美欧洲在线观看| 亚洲免费在线观看视频| 午夜精品久久久| 国产精品一区久久| 欧美一区二区三区另类| 久久另类ts人妖一区二区| 国产乱人伦精品一区二区| 午夜影视日本亚洲欧洲精品| 久久久精品一品道一区| 亚洲成人在线| 免费影视亚洲| 亚洲精品久久久久久久久久久久久| 亚洲精品国精品久久99热| 欧美电影免费观看高清| 亚洲精品一区二区三区蜜桃久| 一区二区三区|亚洲午夜| 欧美日韩国产精品成人| 一本色道久久综合狠狠躁篇怎么玩| 亚洲特级片在线| 国产日韩欧美不卡在线| 久久久久www| 亚洲国产精品v| 一区二区三区欧美| 国产免费成人| 久久婷婷久久| 日韩午夜电影av| 午夜国产精品视频| 禁断一区二区三区在线| 欧美极品欧美精品欧美视频| 一个色综合av| 美女在线一区二区| 夜夜嗨av一区二区三区网页| 国产乱子伦一区二区三区国色天香| 久久久久久久综合日本| 亚洲人成小说网站色在线| 欧美一区二区高清| 91久久精品美女高潮| 国产精品丝袜91| 美女黄毛**国产精品啪啪| 亚洲伦伦在线| 老牛影视一区二区三区| 亚洲视频久久| 在线日韩日本国产亚洲| 欧美三级日韩三级国产三级| 久久国产视频网站| 一级日韩一区在线观看| 欧美r片在线| 久久爱www| 亚洲一区网站| 一本到高清视频免费精品| 国语自产精品视频在线看一大j8 | 国产欧美在线看| 欧美欧美天天天天操| 久久久精品国产免费观看同学| 日韩图片一区| 亚洲国产精品黑人久久久| 久久精品一区二区三区不卡| 一区二区三区三区在线| 亚洲电影免费| 伊人一区二区三区久久精品| 国产精品毛片大码女人| 欧美日韩国产页| 美女国内精品自产拍在线播放| 欧美在线啊v一区| 亚洲深夜福利视频| 亚洲免费av网站| 亚洲国产精品久久久久秋霞不卡| 久久中文字幕导航| 欧美在线视频观看免费网站| 亚洲欧美日韩一区二区在线| 正在播放亚洲一区| 亚洲精品国产无天堂网2021| 亚洲黑丝一区二区| 在线免费日韩片| 在线观看日韩av先锋影音电影院| 国语精品中文字幕| 国内自拍亚洲| 怡红院精品视频在线观看极品| 国产真实精品久久二三区| 国产亚洲视频在线观看| 国产日韩欧美在线播放不卡| 国产美女高潮久久白浆| 国产亚洲激情视频在线| 国产亚洲欧美一级| 黄色亚洲精品| 亚洲国内自拍| 一本到高清视频免费精品| 一区二区三区高清| 亚洲性视频网址| 欧美在线免费看| 久热精品在线| 牛牛影视久久网| 亚洲黄色在线观看| 一区二区三区四区五区精品| 亚洲私拍自拍| 欧美一区二视频| 美女黄网久久| 国产精品成人va在线观看| 国产精品嫩草99a| 国外成人在线视频| 亚洲七七久久综合桃花剧情介绍| 99精品国产在热久久婷婷| 亚洲一区二区视频| 久久久久高清| 亚洲黄页视频免费观看| 亚洲在线一区| 久久亚洲精选| 国产精品久久久免费| 黄色成人在线网址| 日韩午夜一区| 久久精品国产综合精品| 欧美ab在线视频| 一本色道精品久久一区二区三区 | 亚洲一区免费观看| 欧美制服丝袜第一页| 免费视频一区二区三区在线观看| 欧美日韩国产va另类| 国产性色一区二区| 亚洲毛片一区| 久久久久久一区二区三区| 亚洲肉体裸体xxxx137| 午夜精品久久久| 女生裸体视频一区二区三区| 国产精品老牛| 一本色道久久综合亚洲精品小说| 久久精品夜色噜噜亚洲a∨ | 午夜一区二区三视频在线观看| 欧美va天堂在线| 亚洲欧美成人| 欧美日韩美女在线| 亚洲精品1区2区| 久久久久国产一区二区三区四区 | 久久久久一区二区三区|