<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    天空是藍色的

    做好軟件為中國 #gcc -c helloworld.c -o helloworld.o //編譯目標文件 #gcc helloworld.o -o helloworld //編譯成可執行exe #helloworld //運行exe
    數據加載中……
    使用libpqxx總結

    Using libpq(c api) and libpqxx(c++ api) to connect postgresql-8.1.3 on WindowsXP
    need MinGW Msys postgresql-8.1.3 source baggage
    I use libpqxx-2.5.5 look at the libpqxx-2.5.5\win32\Intall.txt

    --------------------------------------------------------------------
    Getting Started with MinGW and MSYS
    (based on contribution by Michael J. Pedersen, 2004-08-17)

    MSYS is a Unix-like environment for Windows.  Once you have this installed,
    building libpqxx should be a lot more like it is under Unix except that the
    locations of libraries and such aren't sufficiently standardized.

    Packages to download if you don't have them already:
    1) MinGW (http://www.mingw.org/), plus any updates.
    2) MSYS (http://www.mingw.org/), again with any updates.
    3) w32api (http://www.mingw.org/).
    4) PostgreSQL (http://www.postgresql.org/).
    5) zlib (http://www.zlib.org/).

    It is generally recommended to get the latest versions of these packages.

    Compiling and installing PostgreSQL before you get to libpqxx:
    1) Install MinGW (install to c:\mingw)
    2) Install MSYS--but not into MinGW directory tree!
    3) Run MSYS (Start->Programs->MinGW->MSYS->msys)
    4) Extract, compile, and install zlib
        # From main source directory of zlib:
        ./configure --prefix=c:/mingw/local && make && make install
    5) Extract, compile, and install postgres
        # From main source directory of PostgreSQL:
        ./configure --prefix=c:/mingw/local --with-includes=c:/mingw/local/include --with-libs=c:/mingw/local/lib  && make && make install
       重要:把C:\mingw\local\bin設置環境變量PATH中
    6) Extract, compile, and install libpqxx
        export LDFLAGS=-lws2_32 &&  ./configure --prefix=c:/mingw/local --disable-shared --enable-static --disable-thread-safety && make && make install
    ---------------------------------------------------------------------
       
     Uing it in eclpise cdt
     1、設置環境變量PATH C:\mingw\local\lib 使程序能連接到libpq.dll
     2、 -I "C:\MinGW\local\include"
      -I "C:\MinGW\libpqxx-2.5.5\include"
     3、 -l  
       pqxx
       pq
       ws2_32
       wsock32
       注意順序
      -L 
       "C:\MinGW\local\lib"
       "C:\MinGW\lib"
     4、測試代碼
     pqlib C庫 \postgresql-8.1.3\src\test\examples
     pqlibxx C++ libpqxx-2.5.5\test    

       

    posted on 2006-05-11 10:52 bluesky 閱讀(4604) 評論(0)  編輯  收藏 所屬分類: C/C++

    主站蜘蛛池模板: xxxx日本免费| 老妇激情毛片免费| 亚洲高清美女一区二区三区| 国产成人免费A在线视频| 99国产精品免费视频观看| 久久国产乱子伦精品免费一| 国产亚洲精品美女2020久久| 一级做a爰片久久毛片免费陪| 色偷偷尼玛图亚洲综合| 国产成人亚洲精品| 久久久久久亚洲Av无码精品专口| 亚洲国产日韩在线观频| 亚洲精品资源在线| 久久精品免费大片国产大片| 成年人网站在线免费观看| 两个人看的www视频免费完整版| 亚洲午夜精品久久久久久人妖| 国产桃色在线成免费视频 | 国产亚洲色婷婷久久99精品91| 日韩电影免费在线观看网站| 亚洲国产精品免费观看| 久久亚洲AV无码西西人体| 国产精品永久免费10000| 日本特黄特色AAA大片免费| 亚洲日本在线观看网址| 精品国产人成亚洲区| 成人无码区免费A片视频WWW | 亚洲精品在线免费看| 羞羞视频在线观看免费| 亚洲av永久综合在线观看尤物| 亚洲毛片αv无线播放一区| 性色av免费观看| 99热这里有免费国产精品| 成人国产网站v片免费观看| 亚洲国产精品综合久久20| 亚洲大尺度无码无码专区| 国产精品免费播放| 男女做羞羞的事视频免费观看无遮挡| 中文字幕无码免费久久9一区9| 亚洲av永久无码天堂网| 国产91在线|亚洲|