1. 程式人生 > >MingW/codeblocks下 [email protected]報錯的解決

MingW/codeblocks下 [email protected]報錯的解決

socket程式設計時出現如下的error:

||=== 生成: Debug in ccc (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o||In function `[email protected]':|
D:\code\ccc\main.cpp|16|undefined reference to `[email protected]'|
obj\Debug\main.o||In function `main':|
D:\code\ccc\main.cpp|28|undefined reference to `[email protected]
'| D:\code\ccc\main.cpp|30|undefined reference to `[email protected]'| D:\code\ccc\main.cpp|33|undefined reference to `[email protected]'| D:\code\ccc\main.cpp|40|undefined reference to `[email protected]'| D:\code\ccc\main.cpp|41|undefined reference to `[email protected]'| D:\code\ccc\main.cpp|43|undefined reference to `
[email protected]
'| D:\code\ccc\main.cpp|49|undefined reference to `[email protected]'| D:\code\ccc\main.cpp|56|undefined reference to `[email protected]'| D:\code\ccc\main.cpp|62|undefined reference to `[email protected]'| D:\code\ccc\main.cpp|62|undefined reference to `[email protected]
'| ||=== Build 失敗了: 11 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|


解決辦法:把libws2_32.a加到連結器中


相關推薦

MingW/codeblocks <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c691958795b2a7b4b2b3b686fe">[email&#160;protected]a>解決

socket程式設計時出現如下的error: ||=== 生成: Debug in ccc (compiler: GNU GCC Compiler) ===| obj\Debug\main.o||In function `[email protected]':|

Linux$#,$0,$1,$2,$3,<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bc98fc">[email&#160;protected]a>,$*,$$,$?代表的含義

$# :傳給指令碼的引數個數; $0 :指令碼名稱; $n :n為數字,代表傳給指令碼的第n個引數; [email protected] :引數列表; $* :也是顯示引數列表,與上一條命

MacOSgit clone <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b8dfd1ccf8dfd1ccd0cdda96dbd7d5">[email&#160;protected]a>: P

MacOS下git clone [email protected]: Permission denied (publickey)錯誤及解決方式 前言 錯誤訊息 解決辦法 改用git當使用者名稱 檢查是否有使用key

Git在windows的安裝和使用<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="52151b06121d0111">[email&#160;protected]a>

Git for Windows v2.7.0 Release Notes Latest update: January 5th 2016 Introduction These release notes describe issues specific to the Git for Windows rele

makefile$^,<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cbef8b">[email&#160;protected]a>,$?,$<,$(@D),$(@F)定義使用詳解

    每次看makefile的時候,總會遇到一些變數記不住,就需要去查詢資料,今天有時間,就順便把幾個常用的變數學習了下,順便總結了下記憶方法,感覺記住它們並不難,特把方法分享給大家。變數定義:$^所有的依賴目標的集合。以空格分隔。如果在依賴目標中有多個重複的,那個這個變數

Arch Linux Intel + NVIDIA 雙顯示卡3D 遊戲配置(<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="72161d06134032010617131f">[email&#160;

下午打了幾場dota2 感覺流暢度還算很不錯的,寫點東西記錄一下。用Arch Linux 的一般來說都會用搜索引擎,所以只說下需要注意的地方即可。 1. steam 自帶的OpenGL 庫是過時的,

LinuxMakefile的編寫及四個特殊符號的意義@、<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="062246">[email&#160;protected]a>、$^、$

我們先看三段C++程式: 一、line1的原始碼 line1.h #ifndef _LINE_1_H #define _LINE_1_H void line1_print(const char *strMsg); #endif line1.cpp #includ

vc平臺 解決外部符號錯誤:_main,<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9dc2caf4f3d0fcf4f3ddacab">[email&#160;protected]a>,__b

不過應該先檢查一下自己是否有拼寫錯誤!!尤其是main和WinMain  解決外部符號錯誤:_main,[email protected],__beginthreadex在建立MFC專案時, 不使用MFC AppWizard嚮導, 如果沒有設定好專案引數, 就會在

shell腳本中的$# $0 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f8dcb8">[email&#160;protected]a> $* $$ $! $?的意義

腳本 $* width 上一個 pre shell int .cn height 轉載自:http://www.cnblogs.com/davygeek/p/5670212.html 今天學寫腳本遇到一些變量不認識,在此做下記錄。 變量 含義 $0 當前腳本的文件

shell中$*與<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b296f2">[email&#160;protected]a>的區別

劃分 位置 一個 這也 差異 獨立 [email protected] 情況 雙引號 $*所有的位置參數,被作為一個單詞 註意:"$*"必須被""引用 [email protected] 與$*同義,但是每個參數都是一個獨立的""引用字串,這就意味著參數

Spring4.0系列<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aa9f87eae9c5c4cec3dec3c5c4cbc6">[email&#160;protected]a>

one window 標識 cto ace ted ada bsp 布爾 這篇文章介紹Spring 4的@Conditional註解。在Spring的早期版本你可以通過以下方法來處理條件問題: 3.1之前的版本,使用Spring Expression Langua

Spring高級話題<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b29ff2f7dcd3d0ded7">[email&#160;protected]a>***註解的工作原理

sso metadata bool logs tcl task ota -c ann 出自:http://blog.csdn.net/qq_26525215 @EnableAspectJAutoProxy @EnableAspectJAutoProxy註解 激活Aspe

<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="297a595b40474e69685c5d465e405b4c4d">[email&#160;protected]a>註解與自動裝配(轉發)

配置 調用方法 support autowired 信息 ann over 反射機制 test 1 配置文件的方法我們編寫spring 框架的代碼時候。一直遵循是這樣一個規則:所有在spring中註入的bean 都建議定義成私有的域變量。並且要配套寫上 get 和 se

linux bash Shell特殊變數:Shell $0, $#, $*, <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8aaeca">[email&#160;protected]a>, $?

在linux下配置shell引數說明 前面已經講到,變數名只能包含數字、字母和下劃線,因為某些包含其他字元的變數有特殊含義,這樣的變數被稱為特殊變數。  例如,$ 表示當前Shell程序的ID,即pid,看下面的程式碼: [[email protected] /]$ ec

spring <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="62000d0d16222103010a0703000e07">[email&#160;protected]a>中value的理解

先看原始碼 /** * Names of the caches in which method invocation results are stored. * <p>Names may be used to determine the target cache (or cac

{<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="733e3c3f3f2a342136363d203323213c273c3d3e323a3f5d303c3e">[email&#160;protecte

近日,復旦解密安全團隊發現GandCrab4.0活躍度提升,跟蹤到多起GandCrab4.0變種勒索事件,現釋出安全預警,提醒廣大使用者預防GandCrab4.0勒索。 目前復旦解密已經可以成功解密GandCrab4.0變種採用RSA+AES加密演算法 mg中毒檔案可以在一個小時解決.電話151691214

Springboot註解<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="260b0b666549485254494a4a4354">[email&#160;protected]a>和@RestCon

1.使用@Controller 註解,在對應的方法上,檢視解析器可以解析return 的jsp,html頁面,並且跳轉到相應頁面;若返回json等內容到頁面,則需要加@ResponseBody註解 [email protected]註解,相當於@[email protected

<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5b2c3e391b33">[email&#160;protected]a>,c小總結

問題0:元素內聯元素,行內元素,行內塊元素.         內聯: 寬高M,P都有效         行內元素:無寬高,內容撐開,M,P左右有效  

SQL Server資料庫mdf檔案中了勒索病毒<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fc9f8e858c889998a39d8f9d9293bc9f939f97">[email&#160;p

SQL,資料庫,勒索病毒,mdf檔案中毒,[email protected]_email *SQL Server資料庫mdf檔案中了勒索病毒[email protected]_email。副檔名變為[email protected]_email SQL Serv

<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5400313a273b2632383b2379142032">[email&#160;protected]a>_export詳解

Tensorflow經常看到定義的函式前面加了“@tf_export”。例如,tensorflow/python/platform/app.py中有: @tf_export('app.run') def run(main=None, argv=None): """Runs the progr