<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 閱讀(4589) 評論(0)  編輯  收藏 所屬分類: C/C++

    主站蜘蛛池模板: 亚洲国产精品人久久| 亚洲色在线无码国产精品不卡| 最近免费mv在线电影| 亚洲 日韩 色 图网站| 亚洲A∨午夜成人片精品网站| 久久精品视频免费| 亚洲综合色区中文字幕| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 精品国产污污免费网站 | 久久99精品免费视频| 国产亚洲精品VA片在线播放| 亚洲愉拍99热成人精品热久久| 成人浮力影院免费看| 一级特黄色毛片免费看| 亚洲精品午夜在线观看| 亚洲第一区在线观看| 免费观看激色视频网站(性色) | 男女一进一出抽搐免费视频| 亚洲天堂一区在线| 亚洲精品无码99在线观看| 免费v片在线观看视频网站| 午夜成人无码福利免费视频| 亚洲免费电影网站| 亚洲处破女AV日韩精品| 免费乱码中文字幕网站| 2020久久精品国产免费| a级片在线免费看| 理论亚洲区美一区二区三区 | 激情吃奶吻胸免费视频xxxx| 亚洲一级片在线播放| 亚洲无av在线中文字幕| 国产成人无码免费视频97| 国产91色综合久久免费| 91精品全国免费观看青青| 亚洲av无码片vr一区二区三区 | 美女视频黄.免费网址| 亚洲精品456人成在线| 久久久久亚洲AV无码专区首JN| 中文字幕精品亚洲无线码一区应用| 午夜电影免费观看| 亚洲第一网站免费视频|