{"id":290753,"date":"2024-04-06T21:15:06","date_gmt":"2024-04-06T13:15:06","guid":{"rendered":"https:\/\/gulass.cn\/ljcxlbccycld.html"},"modified":"2024-04-06T21:15:06","modified_gmt":"2024-04-06T13:15:06","slug":"ljcxlbccycld","status":"publish","type":"post","link":"https:\/\/gulass.cn\/ljcxlbccycld.html","title":{"rendered":"\u96f6\u57fa\u7840\u5b66Linux\u7f16\u7a0b\uff01\u4ece\u9884\u5904\u7406\u5230\u94fe\u63a5\uff0c\u4e00\u6b21get\u660e\u767d"},"content":{"rendered":"
\u4e00\u3001\u7406\u89e3\u7f16\u8bd1\u8fc7\u7a0b<\/b><\/p>\n
\u5728 Linux<\/a> \u73af\u5883\u4e0b\uff0c\u6784\u5efa C \u7a0b\u5e8f\u7684\u5173\u952e\u73af\u8282\u4fbf\u662f\u7f16\u8bd1\u8fc7\u7a0b\u3002\u5168\u9762\u4e86\u89e3\u6b64\u8fc7\u7a0b\u5bf9\u9ad8\u6548\u5730\u5b8c\u6210\u7a0b\u5e8f\u7814\u53d1\u8d77\u7740\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u8be5\u8fc7\u7a0b\u5305\u542b\u9884\u5904\u7406\u3001\u7f16\u8bd1\u3001\u6c47\u7f16\u4ee5\u53ca\u94fe\u63a5\u56db\u5927\u6b65\u9aa4\u3002\u9996\u5148\uff0c\u9884\u5904\u7406\u9636\u6bb5\uff0c\u7f16\u8bd1\u5668\u8d1f\u8d23\u6574\u5408\u6e90\u7801\u4e2d\u8bf8\u5982#include \u4e0e#define \u8fd9\u7c7b\u9884\u5b9a\u4e49\u6307\u4ee4\uff0c\u968f\u4e4b\u8f93\u51fa\u7ecf\u5b8f\u66ff\u6362\u53ca\u6761\u4ef6\u7f16\u8bd1\u5904\u7406\u8fc7\u540e\u7684\u4e2d\u95f4\u4ee3\u7801\u6587\u6863\u3002\u7136\u540e\u8fdb\u5165\u7f16\u8bd1\u9636\u6bb5\uff0c\u7f16\u8bd1\u5668\u4fbf\u5c06\u4e2d\u95f4\u4ee3\u7801\u505a\u8fdb\u4e00\u6b65\u8f6c\u5316\uff0c\u8f6c\u53d8\u6210\u6c47\u7f16\u4ee3\u7801\u3002\u63a5\u4e0b\u6765\uff0c\u6c47\u7f16\u9636\u6bb5\uff0c\u6c47\u7f16\u5668\u4f1a\u5c06\u6c47\u7f16\u4ee3\u7801\u5347\u534e\u4e3a\u76ee\u6807\u6587\u4ef6\u3002\u672b\u4e86\uff0c\u5728\u94fe\u63a5\u9636\u6bb5\uff0c\u94fe\u63a5\u5668\u5c06\u76ee\u6807\u6587\u4ef6\u4e0e\u6240\u9700\u5e93\u6587\u4ef6\u5173\u8054\u8d77\u6765\uff0c\u6700\u7ec8\u751f\u6210\u53ef\u4ee5\u8fd0\u884c\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n \u5b9e\u9645\u5de5\u4f5c\u73af\u8282\u4e2d\uff0c\u9700\u8fd0\u7528\u5404\u7c7b\u5de5\u5177\u8f85\u52a9\u6b65\u9aa4\u8fbe\u6210\uff0c\u5982GCC\uff08Linux\u5e73\u53f0\u4e0a\u5e7f\u6cdb\u5e94\u7528\u7684C\u8bed\u8a00\u7f16\u8bd1\u5668\uff09\u5373\u80fd\u534f\u52a9\u6211\u4eec\u5b8c\u6210\u7531\u6e90\u7801\u81f3\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5b8c\u6574\u7f16\u8bd1\u6d41\u7a0b\u3002<\/p>\n \u4e8c\u3001\u51c6\u5907\u5de5\u4f5c<\/b><\/p>\n \u5728\u7f16\u8bd1C\u7a0b\u5e8f\u524d\uff0c\u9700\u505a\u4ee5\u4e0b\u51c6\u5907\u5de5\u4f5c\uff1a\u5148\u68c0\u67e5\u7cfb\u7edf<\/a>\u4e2d\u662f\u5426\u5df2\u5b89\u88c5\u5982gcc\u8fd9\u6837\u7684\u7f16\u8bd1\u5668\uff1b\u82e5\u672a\u5b89\u88c5\uff0c\u53ef\u5229\u7528\u5305\u7ba1\u7406\u5668\u5b8c\u6210\u5b89\u88c5\u3002\u53ef\u901a\u8fc7\u5728\u7ec8\u7aef\u8f93\u5165gcc --version\u9a8c\u8bc1\u5b89\u88c5\u60c5\u51b5\u3002<\/p>\n <\/p>\n \u5176\u6b21\uff0c\u5e94\u9884\u5907\u597d\u6e90\u7801\u6587\u4ef6\u3002\u4e00\u822c\u800c\u8a00\uff0cC\u4ee3\u7801\u5e38\u4ee5.c\u4e3a\u6269\u5c55\u540d\u4fdd\u5b58\u3002\u52a1\u5fc5\u786e\u4fdd\u6e90\u4ee3\u7801\u65e0\u8bed\u6cd5\u53ca\u903b\u8f91\u6027\u9519\u8bef\u3002<\/p>\n \u4e09\u3001\u7f16\u5199Makefile<\/b><\/p>\n Makefile\u4e3a\u7ba1\u7406\u9879\u76ee\u5404\u6e90\u6587\u4ef6\u95f4\u4f9d\u8d56\u6027\u7684\u6587\u672c\u6587\u4ef6\uff0c\u85c9\u6b64\u5f15\u5bfc\u7cfb\u7edf\u5b9e\u73b0\u81ea\u52a8\u5316\u6784\u5efa\u3002\u5b8c\u6574\u7684Makefile\u5206\u4e3a\u76ee\u6807\u3001\u4f9d\u8d56\u53ca\u6267\u884c\u6307\u4ee4\u4e09\u8981\u7d20\u3002<\/p>\n