| re: how to link libws2_32.a?
Copiler and linker output:
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `WinMain':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:29: multiple definition of `WinMain@16'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:29: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `GetTextandAddLine(char *, HWND__ *, int)':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:38: multiple definition of `GetTextandAddLine(char *, HWND__ *, int)'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:38: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `DlgProc(HWND__ *, unsigned int, unsigned int, long)':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:48: multiple definition of `DlgProc__FP6HWND__UiUil@16'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:48: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `ConnectDlgProc(HWND__ *, unsigned int, unsigned int, long)':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:190: multiple definition of `ConnectDlgProc__FP6HWND__UiUil@16'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:190: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `ListenDlgProc(HWND__ *, unsigned int, unsigned int, long)':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:249: multiple definition of `ListenDlgProc__FP6HWND__UiUil@16'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:249: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `ListenOnPort(int)':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:329: multiple definition of `ListenOnPort(int)'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:329: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `TryConnect(long, int)':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:289: multiple definition of `TryConnect(long, int)'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:289: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `WinMain':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:29: multiple definition of `Title'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:29: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `WinMain':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:30: multiple definition of `hInst'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:30: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `WinMain':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:33: multiple definition of `fromlen'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:33: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `WinMain':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:29: multiple definition of `hwnd'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:29: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `WinMain':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:29: multiple definition of `hStatus'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:29: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `WinMain':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:30: multiple definition of `s'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:30: first defined here
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccUfdaaa.o: In function `WinMain':
//C/Documents and Settings/ervin/Asztal/Programming TCP Sockets for the Beginner/Source Code/Dev-C++/Chat1.cpp:30: multiple definition of `from'
C:\DOCUME~1\ervin\LOCALS~1\Temp\ccYtcaaa.o://c/docume~1/ervin/asztal/progra~1/source~1/dev-c_~1/chat1.cpp:30: first defined here
Why don't work?
|