Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 SmaugFUSS 1.9.2
Yesterday, 10:23 pm
By GatewaySysop
AFKMud 2.2.0
Nov 21, 2014, 7:15 pm
By Samson
CIDR Range Banning
Nov 21, 2014, 2:01 pm
By Samson
Compiling Lop 1.44b, errors.
Nov 17, 2014, 1:12 pm
By Remcon
SmaugFUSS 1.9.1
Nov 15, 2014, 2:44 pm
By GatewaySysop
SmaugFUSS 1.9.2
Author: Various
Submitted by: Samson
AFKMud 2.2.0
Author: AFKMud Team
Submitted by: Samson
SmaugFUSS 1.9.1
Author: Various
Submitted by: Samson
AFKMud 2.1.6
Author: AFKMud Team
Submitted by: Samson
6D update
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Google

Members: 0
Guests: 3
Stats
Files
Topics
Posts
Members
Newest Member
455
3,647
19,034
568
Taenar
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » General Discussions » Windows and Dev-C++
Forum Rules | Mark all | Recent Posts

Windows and Dev-C++
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Sep 30, 2010, 12:45 pm
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

Are there any specific settings needed to compile an SWR/any MUD under Dev-C++? I created a new project and chose console project and imported my source files and received a few warnings. The first few related to files I had included in mud.h that didn't exist(which I removed on my shell copy and found they weren't needed). It also wanted me to install zlib, which I did, but now it's complaining about files not existing that removing on the shell copy creates errors for. Any ideas on what missing library I need or how to solve the problem?

Compiler: Default compiler
Building Makefile: "D:\Projects\SWGI\Makefile.win"
Executing  make...
make.exe -f "D:\Projects\SWGI\Makefile.win" all
g++.exe -c src/comm.cpp -o src/comm.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"   

In file included from src/mud.h:325,
                 from src/comm.cpp:33:
src/structure.h:118: warning: converting to `int' from `double'

src/comm.cpp:40:24: sys/socket.h: No such file or directory
src/comm.cpp:41:24: netinet/in.h: No such file or directory
src/comm.cpp:42:30: netinet/in_systm.h: No such file or directory
src/comm.cpp:43:24: netinet/ip.h: No such file or directory
src/comm.cpp:44:23: arpa/inet.h: No such file or directory
src/comm.cpp:45:25: arpa/telnet.h: No such file or directory
src/comm.cpp:46:19: netdb.h: No such file or directory
src/comm.cpp:50: error: `IAC' was not declared in this scope
src/comm.cpp:50: error: `WILL' was not declared in this scope
src/comm.cpp:50: error: `TELOPT_ECHO' was not declared in this scope
src/comm.cpp:51: error: `IAC' was not declared in this scope
src/comm.cpp:51: error: `WONT' was not declared in this scope
src/comm.cpp:51: error: `TELOPT_ECHO' was not declared in this scope
src/comm.cpp:54: error: `IAC' was not declared in this scope

src/comm.cpp:54: error: `GA' was not declared in this scope
src/comm.cpp:85: error: `fd_set' does not name a type
src/comm.cpp:86: error: `fd_set' does not name a type
src/comm.cpp:87: error: `fd_set' does not name a type
src/comm.cpp: In function `int main(int, char**)':
src/comm.cpp:242: error: `gethostname' undeclared (first use this function)
src/comm.cpp:242: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/comm.cpp: In function `int init_socket(int)':
src/comm.cpp:275: error: aggregate `sockaddr_in sa' has incomplete type and cannot be defined
src/comm.cpp:281: error: `gethostname' undeclared (first use this function)

src/comm.cpp:284: error: `AF_INET' undeclared (first use this function)
src/comm.cpp:284: error: `SOCK_STREAM' undeclared (first use this function)
src/comm.cpp:284: error: `socket' undeclared (first use this function)
src/comm.cpp:290: error: `SOL_SOCKET' undeclared (first use this function)
src/comm.cpp:290: error: `SO_REUSEADDR' undeclared (first use this function)
src/comm.cpp:290: error: `setsockopt' undeclared (first use this function)
src/comm.cpp:313: error: `gethostbyname' undeclared (first use this function)
src/comm.cpp:314: error: `getservbyname' undeclared (first use this function)
src/comm.cpp:317: error: `htons' undeclared (first use this function)
src/comm.cpp:319: error: `bind' undeclared (first use this function)
src/comm.cpp:326: error: `listen' undeclared (first use this function)
src/comm.cpp: In function `void caught_alarm(int)':
src/comm.cpp:351: error: `in_set' undeclared (first use this function)
src/comm.cpp:351: error: `FD_CLR' undeclared (first use this function)
src/comm.cpp:352: error: `out_set' undeclared (first use this function)
src/comm.cpp:353: error: `exc_set' undeclared (first use this function)
src/comm.cpp: In function `bool check_bad_desc(int)':
src/comm.cpp:361: error: `exc_set' undeclared (first use this function)
src/comm.cpp:361: error: `FD_ISSET' undeclared (first use this function)
src/comm.cpp:363: error: `in_set' undeclared (first use this function)

src/comm.cpp:363: error: `FD_CLR' undeclared (first use this function)
src/comm.cpp:364: error: `out_set' undeclared (first use this function)
src/comm.cpp: In function `void accept_new(int)':
src/comm.cpp:380: error: `in_set' undeclared (first use this function)
src/comm.cpp:380: error: `FD_ZERO' undeclared (first use this function)
src/comm.cpp:381: error: `out_set' undeclared (first use this function)
src/comm.cpp:382: error: `exc_set' undeclared (first use this function)
src/comm.cpp:383: error: `FD_SET' undeclared (first use this function)
src/comm.cpp:400: error: `select' undeclared (first use this function)
src/comm.cpp:406: error: `FD_ISSET' undeclared (first use this function)
src/comm.cpp:409: error: `FD_CLR' undeclared (first use this function)
src/comm.cpp: In function `void game_loop()':
src/comm.cpp:426: error: `SIGPIPE' undeclared (first use this function)
src/comm.cpp:427: error: `SIGALRM' undeclared (first use this function)
src/comm.cpp:428: error: `gettimeofday' undeclared (first use this function)
src/comm.cpp:456: error: `exc_set' undeclared (first use this function)
src/comm.cpp:456: error: `FD_ISSET' undeclared (first use this function)
src/comm.cpp:458: error: `in_set' undeclared (first use this function)
src/comm.cpp:458: error: `FD_CLR' undeclared (first use this function)
src/comm.cpp:459: error: `out_set' undeclared (first use this function)
src/comm.cpp:608: error: `select' undeclared (first use this function)
src/comm.cpp: In function `void new_descriptor(int)':
src/comm.cpp:681: error: aggregate `sockaddr_in sock' has incomplete type and cannot be defined
src/comm.cpp:698: error: `accept' undeclared (first use this function)
src/comm.cpp:720: error: `FIONBIO' undeclared (first use this function)
src/comm.cpp:720: error: `ioctlsocket' undeclared (first use this function)
src/comm.cpp:735: error: `inet_ntoa' undeclared (first use this function)
src/comm.cpp: In function `void close_socket(DESCRIPTOR_DATA*, bool)':
src/comm.cpp:888: error: `SIGKILL' undeclared (first use this function)
src/comm.cpp:888: error: `kill' undeclared (first use this function)
src/comm.cpp:889: error: `waitpid' undeclared (first use this function)
src/comm.cpp: In function `bool read_from_descriptor(DESCRIPTOR_DATA*)':
src/comm.cpp:1063: error: `EWOULDBLOCK' undeclared (first use this function)
src/comm.cpp: In function `void read_from_buffer(DESCRIPTOR_DATA*)':
src/comm.cpp:1124: error: `IAC' undeclared (first use this function)
src/comm.cpp:1127: error: `DO' undeclared (first use this function)
src/comm.cpp:1128: error: `DONT' undeclared (first use this function)
src/comm.cpp:1128: error: `WILL' undeclared (first use this function)
src/comm.cpp: In function `bool write_to_descriptor(DESCRIPTOR_DATA*, const char*, int)':
src/comm.cpp:1418: error: `send' undeclared (first use this function)
src/comm.cpp:1422: error: `EWOULDBLOCK' undeclared (first use this function)

src/comm.cpp: In function `bool write_to_descriptor_old(long int, char*, int)':
src/comm.cpp:1506: error: `send' undeclared (first use this function)
src/comm.cpp:1511: error: `WSAGetLastError' undeclared (first use this function)
src/comm.cpp:1515: error: `EWOULDBLOCK' undeclared (first use this function)

make.exe: *** [src/comm.o] Error 1

Execution terminated
       
Post is unread #2 Sep 30, 2010, 3:17 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Lurker
GroupAdministrators
Posts1,192
JoinedMar 21, 2006

There a thread around here somewhere that talks about getting SmaugFUSS to compile with Dev-C++. It might be worth perusing to see if you're missing anything it mentions.
       
Post is unread #3 Sep 30, 2010, 4:57 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,612
JoinedJan 1, 2002

That would be this one. It never got very far, but SmaugFUSS got as close as any of them to actually running with that. Of course, that was 5 years ago and a lot of updating was done since version 1.6 that might have broken things again.
       
Post is unread #4 Sep 30, 2010, 11:37 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Lurker
GroupAdministrators
Posts1,192
JoinedMar 21, 2006

I used Dev-C++ for a while, and found it lacking in several features that I have in Visual Studio that I can't live without. When I used Dev-C++ it didn't really support RegEx for searching the code, which I find to be extremely important for mass changes to the way arguments are arranged for a function that is used everywhere. A good example is when I replaced send_to_char( ); with ch->print( );. I simply did a global Search/Replace with send_to_char[:Zs]*\([:Zs]*{"([^\\]*\\";)*[^"]*"}[:Zs]*,[:Zs]*ch[:Zs]*\)[:Zs]*; as the search parameters, and ch->print( \1 ); as the replace, which replaced every occurrence of send_to_char( "something", ch ); with: ch->print( "something" ); which cut the conversion from days to minutes. So, I doubt I could bring myself to work on Dev-C++ again after working on VS for so long.

And yes, that's a Visual Studio specific RegEx expression, so that won't work in vim/vi/nano/whatever. ;)
       
Post is unread #5 Oct 3, 2010, 11:41 am
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

Well, I wasn't specifically looking for Dev-C++ to work. Does VS work out of the box? I have tried it before but I didn't know exactly what to set to get it to work, and it was with a mysql-enabled codebase, which could have thrown it off.
       
Post is unread #6 Oct 3, 2010, 1:48 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Lurker
GroupAdministrators
Posts1,192
JoinedMar 21, 2006

If what you're working on is reworked to include windows checks, then yes, it probably will compile in VS without too much work. If not, then you'll have the same issues as with Dev-C++.
       
Pages:<< prev 1 next >>