<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++

    主站蜘蛛池模板: 国产精品无码亚洲精品2021| 亚洲伊人久久大香线蕉啊| 亚洲jizzjizz少妇| 女人让男人免费桶爽30分钟| 很黄很污的网站免费| 亚洲人成无码网站| 三年片在线观看免费观看大全一| 91精品成人免费国产片| 亚洲婷婷天堂在线综合| 一级毛片完整版免费播放一区| 少妇亚洲免费精品| 亚洲国产理论片在线播放| 免费在线观看视频网站| 亚洲国产日韩视频观看| 在线免费观看污网站| 四虎成人精品国产永久免费无码| 亚洲免费日韩无码系列| 13小箩利洗澡无码视频网站免费| 日本中文一区二区三区亚洲| 成人免费视频一区二区| 久久亚洲成a人片| 一级做a爰黑人又硬又粗免费看51社区国产精品视 | 最新中文字幕免费视频| 亚洲精品宾馆在线精品酒店| 亚洲国产激情一区二区三区| 午夜精品射精入后重之免费观看| 亚洲三级中文字幕| 午夜国产大片免费观看| 免费日本一区二区| 亚洲一区二区三区乱码在线欧洲| 美女视频黄的免费视频网页| 亚洲最大在线视频| 亚洲AV无码乱码在线观看性色扶 | 在线亚洲97se亚洲综合在线| 怡红院免费的全部视频| 亚洲午夜久久久久久噜噜噜| 无码国产精品一区二区免费3p| 日本亚洲色大成网站www久久| 亚洲А∨精品天堂在线| 午夜免费啪视频在线观看| 亚洲国产精品自在自线观看|