473,394 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

undefined refrence

I'm rather new to C++ programing. I'm using the dev-C++ program on a
windows XP OS. I'm trying to compile the code for a multi user dungeon
(MUD) called circle-mud.

When I compile I get the following errors:

----
Compiler: Default compiler
Building Makefile: "C:\EvoMud\circle-3.1\src\Makefile.win"
Executing make...
make.exe -f "C:\EvoMud\circle-3.1\src\Makefile.win" all
g++.exe act.comm.o act.informative.o act.item.o act.movement.o
act.offensive.o act.other.o act.social.o act.wizard.o alias.o ban.o
boards.o bsd-snprintf.o castle.o class.o comm.o config.o constants.o
db.o fight.o graph.o handler.o house.o interpreter.o limits.o magic.o
mail.o mobact.o modify.o objsave.o olc.o random.o shop.o spec_assign.o
spec_procs.o spell_parser.o spells.o utils.o weather.o -o "EvoMud.exe"
-L"C:/Dev-Cpp/lib"

comm.o(.text+0x4ec):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x570):comm.c: undefined reference to `WSAStartup@8'
comm.o(.text+0x5db):comm.c: undefined reference to `socket@12'
comm.o(.text+0x5ec):comm.c: undefined reference to `WSAGetLastError@0'
comm.o(.text+0x639):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x6a2):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x6e2):comm.c: undefined reference to `htons@4'
comm.o(.text+0x70d):comm.c: undefined reference to `bind@12'
comm.o(.text+0x72b):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x758):comm.c: undefined reference to `listen@8'
comm.o(.text+0x846):comm.c: undefined reference to `select@20'
comm.o(.text+0xb4f):comm.c: undefined reference to `select@20'
comm.o(.text+0xb7c):comm.c: undefined reference to `__WSAFDIsSet@8'
comm.o(.text+0xbd2):comm.c: undefined reference to `__WSAFDIsSet@8'
comm.o(.text+0xd28):comm.c: undefined reference to `__WSAFDIsSet@8'

comm.o(.text+0x1080):comm.c: undefined reference to `__WSAFDIsSet@8'
comm.o(.text+0x1f65):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x1fa9):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x1fbd):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x1fe3):comm.c: undefined reference to `inet_ntoa@4'
comm.o(.text+0x200f):comm.c: undefined reference to `inet_addr@4'
comm.o(.text+0x2071):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x20c8):comm.c: undefined reference to `accept@12'
comm.o(.text+0x2111):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x216a):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x21cf):comm.c: undefined reference to `gethostbyaddr@12'
comm.o(.text+0x21fb):comm.c: undefined reference to `inet_ntoa@4'
comm.o(.text+0x2269):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x278d):comm.c: undefined reference to `send@16'
comm.o(.text+0x27c1):comm.c: undefined reference to `WSAGetLastError@0'
comm.o(.text+0x27cd):comm.c: undefined reference to `WSAGetLastError@0'
comm.o(.text+0x289f):comm.c: undefined reference to `recv@16'
comm.o(.text+0x28d3):comm.c: undefined reference to `WSAGetLastError@0'
comm.o(.text+0x28df):comm.c: undefined reference to `WSAGetLastError@0'
comm.o(.text+0x3108):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x35a8):comm.c: undefined reference to `ioctlsocket@12'
collect2: ld returned 1 exit status

make.exe: *** [EvoMud.exe] Error 1

Execution terminated

----
comm.o is some sort of encrypted file. I had never even heard of
".o" files before.

Thanks!

Jul 23 '05 #1
1 9567
Foolster41 wrote:
I'm rather new to C++ programing. I'm using the dev-C++ program on a
windows XP OS. I'm trying to compile the code for a multi user dungeon
(MUD) called circle-mud.

When I compile I get the following errors:

----
Compiler: Default compiler
Building Makefile: "C:\EvoMud\circle-3.1\src\Makefile.win"
Executing make...
make.exe -f "C:\EvoMud\circle-3.1\src\Makefile.win" all
g++.exe act.comm.o act.informative.o act.item.o act.movement.o
act.offensive.o act.other.o act.social.o act.wizard.o alias.o ban.o
boards.o bsd-snprintf.o castle.o class.o comm.o config.o constants.o
db.o fight.o graph.o handler.o house.o interpreter.o limits.o magic.o
mail.o mobact.o modify.o objsave.o olc.o random.o shop.o spec_assign.o
spec_procs.o spell_parser.o spells.o utils.o weather.o -o "EvoMud.exe"
-L"C:/Dev-Cpp/lib"

comm.o(.text+0x4ec):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x570):comm.c: undefined reference to `WSAStartup@8'
comm.o(.text+0x5db):comm.c: undefined reference to `socket@12'
comm.o(.text+0x5ec):comm.c: undefined reference to `WSAGetLastError@0'
comm.o(.text+0x639):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x6a2):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x6e2):comm.c: undefined reference to `htons@4'
comm.o(.text+0x70d):comm.c: undefined reference to `bind@12'
comm.o(.text+0x72b):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x758):comm.c: undefined reference to `listen@8'
comm.o(.text+0x846):comm.c: undefined reference to `select@20'
comm.o(.text+0xb4f):comm.c: undefined reference to `select@20'
comm.o(.text+0xb7c):comm.c: undefined reference to `__WSAFDIsSet@8'
comm.o(.text+0xbd2):comm.c: undefined reference to `__WSAFDIsSet@8'
comm.o(.text+0xd28):comm.c: undefined reference to `__WSAFDIsSet@8'

comm.o(.text+0x1080):comm.c: undefined reference to `__WSAFDIsSet@8'
comm.o(.text+0x1f65):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x1fa9):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x1fbd):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x1fe3):comm.c: undefined reference to `inet_ntoa@4'
comm.o(.text+0x200f):comm.c: undefined reference to `inet_addr@4'
comm.o(.text+0x2071):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x20c8):comm.c: undefined reference to `accept@12'
comm.o(.text+0x2111):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x216a):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x21cf):comm.c: undefined reference to `gethostbyaddr@12'
comm.o(.text+0x21fb):comm.c: undefined reference to `inet_ntoa@4'
comm.o(.text+0x2269):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x278d):comm.c: undefined reference to `send@16'
comm.o(.text+0x27c1):comm.c: undefined reference to `WSAGetLastError@0'
comm.o(.text+0x27cd):comm.c: undefined reference to `WSAGetLastError@0'
comm.o(.text+0x289f):comm.c: undefined reference to `recv@16'
comm.o(.text+0x28d3):comm.c: undefined reference to `WSAGetLastError@0'
comm.o(.text+0x28df):comm.c: undefined reference to `WSAGetLastError@0'
comm.o(.text+0x3108):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x35a8):comm.c: undefined reference to `ioctlsocket@12'
collect2: ld returned 1 exit status


Seems like you need to link in the winsock library. This link should
tell you more about it:
http://www.gamedev.net/community/for...opic_id=323433

Sivert
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Greg Phillips | last post by:
Hello everyone, I have read the section on templates in The C++ Programming Language 3rd edition 3 times over the last 4 days. Still I am stumped. I'll explain a bit about what I am doing...
6
by: A.M | last post by:
Hi, Ho can I send a refrence type by value as a method parameter. Thanks, Alan
2
by: | last post by:
i have a form name Form1 i want to create a copy of Form2 which know th refrence of Form1. example: private: System::Void button1_Click(System::Object * sender, System::EventArgs * e) { Form2...
1
by: Mike John | last post by:
How can I add refrence to aspNetEmail so I can import it in my aspx page Imports aspNetEmail 'aspNetEmail was not in the list of Imports. Sincerely yours Mike John
5
by: KraftDiner | last post by:
I understand that everything in python is a refrence.... I have a small problem.. I have a list and want to make a copy of it and add an element to the end of the new list, but keep the...
161
by: KraftDiner | last post by:
I was under the assumption that everything in python was a refrence... so if I code this: lst = for i in lst: if i==2: i = 4 print lst I though the contents of lst would be modified.....
0
by: Gary | last post by:
I'm using VB.net in Visual Studio .net 2005. I've created a web service and have it hosted on a private server (Windows 2003 - IIS 6.0). I can add the web service as a Web Refrrence, but it...
12
by: bobrics | last post by:
Hi, I have been trying to compile some source code that is supposed to be working and getting some compilation errors. The errors are with sqrt(), log() and round() functions. I have math.h...
4
hemantbasva
by: hemantbasva | last post by:
We have designed an aspx page having five ajax tab in it. the data of first four are designed on page whereas for the fifth tab it renders a user control named MYDOMAIN. in the tab container's even...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.