<tfoot id='DfWD5'></tfoot>

      <bdo id='DfWD5'></bdo><ul id='DfWD5'></ul>

        <small id='DfWD5'></small><noframes id='DfWD5'>

      1. <i id='DfWD5'><tr id='DfWD5'><dt id='DfWD5'><q id='DfWD5'><span id='DfWD5'><b id='DfWD5'><form id='DfWD5'><ins id='DfWD5'></ins><ul id='DfWD5'></ul><sub id='DfWD5'></sub></form><legend id='DfWD5'></legend><bdo id='DfWD5'><pre id='DfWD5'><center id='DfWD5'></center></pre></bdo></b><th id='DfWD5'></th></span></q></dt></tr></i><div id='DfWD5'><tfoot id='DfWD5'></tfoot><dl id='DfWD5'><fieldset id='DfWD5'></fieldset></dl></div>
      2. <legend id='DfWD5'><style id='DfWD5'><dir id='DfWD5'><q id='DfWD5'></q></dir></style></legend>

        MAC OS X 10.6 上 MySQL C API 的编译问题

        时间:2023-08-20

          1. <i id='O7Lyi'><tr id='O7Lyi'><dt id='O7Lyi'><q id='O7Lyi'><span id='O7Lyi'><b id='O7Lyi'><form id='O7Lyi'><ins id='O7Lyi'></ins><ul id='O7Lyi'></ul><sub id='O7Lyi'></sub></form><legend id='O7Lyi'></legend><bdo id='O7Lyi'><pre id='O7Lyi'><center id='O7Lyi'></center></pre></bdo></b><th id='O7Lyi'></th></span></q></dt></tr></i><div id='O7Lyi'><tfoot id='O7Lyi'></tfoot><dl id='O7Lyi'><fieldset id='O7Lyi'></fieldset></dl></div>

            1. <small id='O7Lyi'></small><noframes id='O7Lyi'>

              • <tfoot id='O7Lyi'></tfoot>
                  <bdo id='O7Lyi'></bdo><ul id='O7Lyi'></ul>
                    <tbody id='O7Lyi'></tbody>
                • <legend id='O7Lyi'><style id='O7Lyi'><dir id='O7Lyi'><q id='O7Lyi'></q></dir></style></legend>
                • 本文介绍了MAC OS X 10.6 上 MySQL C API 的编译问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我在使用 MySQL C API 和 Mac OS X 10.6 时遇到问题.当我想编译 SQL 客户端程序时,它会因此错误消息而中止

                  i've a Problem with MySQL C API and Mac OS X 10.6. When i want to compile a SQL Client Program, it aborts with this Error Message

                  ld: 找不到 -lmysqlclient 的库

                  ld: library not found for -lmysqlclient

                  collect2:ld 返回 1 个退出状态

                  collect2: ld returned 1 exit status

                  我用这个命令编译:

                  g++ -I/usr/local/mysql/include/-L/usr/local/mysql/lib/-lmysqlclient main.cpp

                  g++ -I /usr/local/mysql/include/ -L /usr/local/mysql/lib/ -lmysqlclient main.cpp

                  我在不同位置尝试了标题和库 - 没有效果我已经从另一个目标下载了标题和库 - 效果与以前相同

                  I've tried the Headers and Librarys in different locations - no effect I've downloaded the headers and the Library from an other Destination - Same effect as before

                  任何想法我做错了什么?如果已经有一个线程,我想原谅(在搜索中没有找到)!

                  Any Ideas what i am doing wrong? If there is a thread allready i want to excuse (nothing found in search)!

                  你好,丹尼斯

                  推荐答案

                  所以经过很多天的工作,不密集的工作 ;-) 这里是错误:如果库位于标准安装目录中,则编译器不接受该库.我将包含和 lib 文件复制到 /usr/local/include/usr/local/lib .现在它编译没有错误:-)

                  So after many days, of not intensive work ;-) here's the fault: the compiler doesn't accept the library if it is in the standard install directory. I copied the include and lib files into /usr/local/include and /usr/local/lib . Now it compiles without errors :-)

                  我不知道为什么它只能在标准路径中工作,但现在它可以工作了.

                  I don't know why it only works in the standard paths but however now it works.

                  丹尼斯

                  这篇关于MAC OS X 10.6 上 MySQL C API 的编译问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:创建rest api url以连接mysql数据库 下一篇:使用 Web 服务并使用 Node.js 将 CLOB 插入 Oracle 数据

                  相关文章

                  最新文章

                • <small id='2r02T'></small><noframes id='2r02T'>

                  1. <i id='2r02T'><tr id='2r02T'><dt id='2r02T'><q id='2r02T'><span id='2r02T'><b id='2r02T'><form id='2r02T'><ins id='2r02T'></ins><ul id='2r02T'></ul><sub id='2r02T'></sub></form><legend id='2r02T'></legend><bdo id='2r02T'><pre id='2r02T'><center id='2r02T'></center></pre></bdo></b><th id='2r02T'></th></span></q></dt></tr></i><div id='2r02T'><tfoot id='2r02T'></tfoot><dl id='2r02T'><fieldset id='2r02T'></fieldset></dl></div>
                    <legend id='2r02T'><style id='2r02T'><dir id='2r02T'><q id='2r02T'></q></dir></style></legend>

                      <tfoot id='2r02T'></tfoot>
                        <bdo id='2r02T'></bdo><ul id='2r02T'></ul>