作者zebook.bbs@ptt.cc (涼) 看板: linux
標題[問題] 一篇文件,看不懂在講什麼﹙已翻譯中文﹚
時間批踢踢實業 (2008/04/03 Thu 16:05:52)
請問各位大大,這篇文篇是在講什麼,我不懂的地方是第二段和第三段,請高手解答一下
。謝謝。
I've compiled and debugged sql_LV to work with Linux. Since gcc works a
little different than MSVC, there were a few minor changes I had to make to
the source -- the Linux LabView user will probably not be able to use the .so
library exactly as is compiled.
我已經編譯和除錯在sql_LV這個程式在linux上運作。自從gcc和微軟VC工作開始有一些不
同以後,有一些比較小的改變,我必須去製作這些源碼--linux labview 的使用者大概不
能去使用這個 .so 的函數精準的編譯。
To make the library for your Linux distro, make sure you have both MySQL API
and UnixODBC installed (you don't have to use MySQL, I just don't want to
re-write the source to get rid of the references, I'll accept changes from
anyone who does have the time to do it, using a compile-time switch). Once
you make the changes to the Makefile on the library locations (should be
obvious), make the library with:
在你的linux上製作一個 library,確定你同時具有 MySQL API 和 UnixODBC 都已經安裝
好了(你不一定必須使用MySQL,我只是不想要重新寫一次程式去擺脫那些參考資料,我可
以接受任何人他有時間去做,使用編譯時做切換)。一但你做了這個改變去 Makefile 在
函式庫 locations (應該明白﹚,使那個函式庫加上:
make clean ; make ODBC=1 test
If it fails in the build, it'll fail in LabView (even if it successfully
builds an .so file), the test program insures all the library calls are
satisfied. Compiler warnings are OK, if you, the programmer, want to clean
all that up (without a gcc switch), I'll post those changes to the source.
如果他在建立的時候發生故障,他會在labview下中斷(儘管他成功的建立成 .so 的檔案)
,測試的程式確保那函式回應是令人滿意的。編譯器警告是ok的,如果你 程式設計師,
想要清除所有的東西(不需要 gcc swith),我將會po出那些改變的程式.
Get the code from http://performancemicrowave.com/sql_LV.html
新手發問。請大家幫忙一下。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.223.4.116