<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # C開發者如何使用Swoole swoole使用cmake來做編譯配置,示例程序在examples/server.c中。 您可以在此基礎上進行代碼開發。 如果需要修改編譯細節的選項,請直接修改CMakeLists.txt 生成config.h ---- swoole依賴`phpize`和`configure`檢測系統環境,生成`config.h` ```shell cd swoole-src/ phpize ./configure ``` 執行成功后`swoole-src`目錄下會有`config.h` Build & Install ----- ```bash cmake . make make install ``` * `cmake`命令可以增加`cmake . -DCMAKE_INSTALL_PREFIX=/opt/swoole`參數指定安裝的路徑 * `make`命令可以使用 `make DESTDIR=/opt/swoole install`參數指定安裝的路徑 安裝路徑非系統默認的lib目錄時,需要配置`ld.so.conf`將swoole動態連接庫所在的目錄添加到link路徑中。 ```shell #需要root權限 echo "/opt/swoole/lib" >> /etc/ld.so.conf #或者 echo "/opt/swoole/lib" > /etc/ld.so.conf.d/swoole.conf #更新動態連接庫信息 ldconfig ``` Example ----- 示例代碼:examples/server.c 在C代碼中只需要引入swoole頭即可。 ```c #include <swoole/Server.h> #include <swoole/Client.h> int main() { swServer serv; swServer_create(&serv); serv.onStart = my_onStart; ... swServer_start(&serv); } ``` 編譯運行 ``` gcc -o server server.c -lswoole ./server ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看