{"id":910,"date":"2022-01-22T07:49:00","date_gmt":"2022-01-22T07:49:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=910"},"modified":"2022-01-22T07:49:00","modified_gmt":"2022-01-22T07:49:00","slug":"910","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2022\/01\/22\/910\/","title":{"rendered":"VS Code\u548cTDM Gcc \u4f7f\u7528 C\/C++ Makefile Project \u63d2\u4ef6\u7f16\u8bd1 tcping \u5de5\u5177"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2022\/01\/87426035.png\" alt=\"cpp.png\" title=\"cpp.png\"><\/p>\n<h2>\u9996\u5148\u5b89\u88c5 <a href=\"https:\/\/code.visualstudio.com\/\">Visual Studio Code<\/a> \u548c <a href=\"https:\/\/jmeubank.github.io\/tdm-gcc\/\">TDM Gcc<\/a><\/h2>\n<ul>\n<li>\u672c\u7ad9\u53c2\u8003\u6587\u7ae0 <a href=\"https:\/\/lyvba.com\/index.php\/tag\/vscode\/\">https:\/\/lyvba.com\/index.php\/tag\/vscode\/<\/a><\/li>\n<\/ul>\n<h2>\u5b89\u88c5 C\/C++ Makefile Project \u63d2\u4ef6 <a href=\"https:\/\/lyvba.com\/index.php\/archives\/897\/\">\u53c2\u8003\u6587\u7ae0<\/a><\/h2>\n<ul>\n<li>\u6587\u7ae0 <a href=\"https:\/\/lyvba.com\/index.php\/archives\/897\/\">VS Code \u4f7f\u7528 C\/C++ Makefile Project \u63d2\u4ef6\u5efa\u7acb\u9879\u76ee<\/a><\/li>\n<\/ul>\n<h2>\u4f7f\u7528 C\/C++ Makefile Project \u63d2\u4ef6\u5efa\u7acb <code>Makefile<\/code><\/h2>\n<ul>\n<li>ctrl+shift+p, \u63d2\u4ef6\u9009\u62e9 <code>Only C++ Makefile<\/code><\/li>\n<li>\n<p>\u4fee\u6539\u4e09\u5904: <code>CXXFLAGS<\/code>  <code>LDFLAGS<\/code>  <code>APPNAME<\/code> \u53c2\u8003\u5982\u4e0b<\/p>\n<pre><code># Compiler settings - Can be customized.\nCC = g++\nCXXFLAGS = -std=c++11  -Wall -O2 -s -shared-libstdc++\n# -fexec-charset=gbk -finput-charset=UTF-8  -O2 -s  -shared-libstdc++  -m64  -m32\nLDFLAGS  = -lws2_32\n\n# Makefile settings - Can be customized.\nAPPNAME = tcping\nEXT = .cpp\nSRCDIR = .\nOBJDIR = .<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>\u4f7f\u7528 <code>make<\/code> \u7f16\u8bd1\u9879\u76ee<\/h2>\n<ul>\n<li><code>D:TDM-GCC-64\binmingw32-make.exe<\/code> \u590d\u5236\u526f\u672c\uff0c\u6539\u540d\u6210 <code>make.exe<\/code><\/li>\n<li>VS Code \u65b0\u5efa\u7ec8\u7aef\uff0c\u5982\u6f14\u793a\u52a8\u753b\uff0c\u8f93\u5165 <code>make<\/code> \u547d\u4ee4\u8fdb\u884c\u7f16\u8bd1<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2022\/01\/2115598247.gif\" alt=\"make.gif\" title=\"make.gif\"><\/p>\n<h2>tcping - ping over a tcp connection<\/h2>\n<p>tcping \u662f\u4e00\u4e2a\u63a7\u5236\u53f0\u5e94\u7528\u7a0b\u5e8f\uff0c\u5176\u64cd\u4f5c\u7c7b\u4f3c\u4e8e\u201cping\u201d\uff0c\u4f46\u5b83\u901a\u8fc7 tcp \u7aef\u53e3\u5de5\u4f5c\u3002<\/p>\n<ul>\n<li>\u5b98\u65b9: <a href=\"https:\/\/elifulkerson.com\/projects\/tcping.php\">https:\/\/elifulkerson.com\/projects\/tcping.php<\/a><\/li>\n<li>\u914d\u7f6eMakefile\u9879\u76ee:  <a href=\"https:\/\/github.com\/srgb888\/tcping\">https:\/\/github.com\/srgb888\/tcping<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u5b89\u88c5 Visual Studio Code \u548c TDM Gcc \u672c\u7ad9\u53c2\u8003\u6587\u7ae0 https:\/\/l [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[31,50],"class_list":["post-910","post","type-post","status-publish","format-standard","hentry","category-learn","tag-cpp","tag-vscode"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=910"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/910\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}