473,890 Members | 2,051 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\circ le-3.1\src\Makefil e.win"
Executing make...
make.exe -f "C:\EvoMud\circ le-3.1\src\Makefil e.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+0x 4ec):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 570):comm.c: undefined reference to `WSAStartup@8'
comm.o(.text+0x 5db):comm.c: undefined reference to `socket@12'
comm.o(.text+0x 5ec):comm.c: undefined reference to `WSAGetLastErro r@0'
comm.o(.text+0x 639):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x 6a2):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x 6e2):comm.c: undefined reference to `htons@4'
comm.o(.text+0x 70d):comm.c: undefined reference to `bind@12'
comm.o(.text+0x 72b):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 758):comm.c: undefined reference to `listen@8'
comm.o(.text+0x 846):comm.c: undefined reference to `select@20'
comm.o(.text+0x b4f):comm.c: undefined reference to `select@20'
comm.o(.text+0x b7c):comm.c: undefined reference to `__WSAFDIsSet@8 '
comm.o(.text+0x bd2):comm.c: undefined reference to `__WSAFDIsSet@8 '
comm.o(.text+0x d28):comm.c: undefined reference to `__WSAFDIsSet@8 '

comm.o(.text+0x 1080):comm.c: undefined reference to `__WSAFDIsSet@8 '
comm.o(.text+0x 1f65):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x 1fa9):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x 1fbd):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x 1fe3):comm.c: undefined reference to `inet_ntoa@4'
comm.o(.text+0x 200f):comm.c: undefined reference to `inet_addr@4'
comm.o(.text+0x 2071):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x 20c8):comm.c: undefined reference to `accept@12'
comm.o(.text+0x 2111):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 216a):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 21cf):comm.c: undefined reference to `gethostbyaddr@ 12'
comm.o(.text+0x 21fb):comm.c: undefined reference to `inet_ntoa@4'
comm.o(.text+0x 2269):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 278d):comm.c: undefined reference to `send@16'
comm.o(.text+0x 27c1):comm.c: undefined reference to `WSAGetLastErro r@0'
comm.o(.text+0x 27cd):comm.c: undefined reference to `WSAGetLastErro r@0'
comm.o(.text+0x 289f):comm.c: undefined reference to `recv@16'
comm.o(.text+0x 28d3):comm.c: undefined reference to `WSAGetLastErro r@0'
comm.o(.text+0x 28df):comm.c: undefined reference to `WSAGetLastErro r@0'
comm.o(.text+0x 3108):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 35a8):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 9624
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\circ le-3.1\src\Makefil e.win"
Executing make...
make.exe -f "C:\EvoMud\circ le-3.1\src\Makefil e.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+0x 4ec):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 570):comm.c: undefined reference to `WSAStartup@8'
comm.o(.text+0x 5db):comm.c: undefined reference to `socket@12'
comm.o(.text+0x 5ec):comm.c: undefined reference to `WSAGetLastErro r@0'
comm.o(.text+0x 639):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x 6a2):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x 6e2):comm.c: undefined reference to `htons@4'
comm.o(.text+0x 70d):comm.c: undefined reference to `bind@12'
comm.o(.text+0x 72b):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 758):comm.c: undefined reference to `listen@8'
comm.o(.text+0x 846):comm.c: undefined reference to `select@20'
comm.o(.text+0x b4f):comm.c: undefined reference to `select@20'
comm.o(.text+0x b7c):comm.c: undefined reference to `__WSAFDIsSet@8 '
comm.o(.text+0x bd2):comm.c: undefined reference to `__WSAFDIsSet@8 '
comm.o(.text+0x d28):comm.c: undefined reference to `__WSAFDIsSet@8 '

comm.o(.text+0x 1080):comm.c: undefined reference to `__WSAFDIsSet@8 '
comm.o(.text+0x 1f65):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x 1fa9):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x 1fbd):comm.c: undefined reference to `htonl@4'
comm.o(.text+0x 1fe3):comm.c: undefined reference to `inet_ntoa@4'
comm.o(.text+0x 200f):comm.c: undefined reference to `inet_addr@4'
comm.o(.text+0x 2071):comm.c: undefined reference to `setsockopt@20'
comm.o(.text+0x 20c8):comm.c: undefined reference to `accept@12'
comm.o(.text+0x 2111):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 216a):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 21cf):comm.c: undefined reference to `gethostbyaddr@ 12'
comm.o(.text+0x 21fb):comm.c: undefined reference to `inet_ntoa@4'
comm.o(.text+0x 2269):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 278d):comm.c: undefined reference to `send@16'
comm.o(.text+0x 27c1):comm.c: undefined reference to `WSAGetLastErro r@0'
comm.o(.text+0x 27cd):comm.c: undefined reference to `WSAGetLastErro r@0'
comm.o(.text+0x 289f):comm.c: undefined reference to `recv@16'
comm.o(.text+0x 28d3):comm.c: undefined reference to `WSAGetLastErro r@0'
comm.o(.text+0x 28df):comm.c: undefined reference to `WSAGetLastErro r@0'
comm.o(.text+0x 3108):comm.c: undefined reference to `closesocket@4'
comm.o(.text+0x 35a8):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
2908
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 before asking the question so as you can understand what I am trying to accomplish. Any help would be much appreciated.
6
1453
by: A.M | last post by:
Hi, Ho can I send a refrence type by value as a method parameter. Thanks, Alan
2
1138
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 * copy = new Form2(this); copy ->ShowDialog(); }
1
1538
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
1415
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 original intact.... so: tmp = myList
161
7951
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.. (After reading that
0
1374
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 does not show-up as a Data Source in my solution. I can add api.google.com and it is listed as both a Web Refrence and a Data Source. When I'm done with the Add Data Source wizard, the status bar says "web refrence update complete" - not much help...
12
14373
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 included and made sure it's in the path. I have read on the forums that some have fixed the problem by telling GCC to link math libraries if it's not done by default. So, using gcc -lm helped to resolve the problems with defining the
4
8432
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 onactivetabindexchanged we have called a method loadtabpanel() which is defined in javascript in same page.the problem is it sometime give the message load tab panel undefined. this error does not come regularly. it comes in usercontrol rendering . i...
0
9975
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9812
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11212
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10446
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7154
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5832
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6032
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4255
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.