Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUDs ➜ General ➜ Help With ScratchMUD

Help With ScratchMUD

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 3  4  

Posted by IAmSlime   USA  (26 posts)  Bio
Date Reply #15 on Fri 20 Jan 2006 05:25 AM (UTC)
Message
Thanks for your coninued help, WhiteKnight. Unfortunately, I don't know how to do any of that with Dev-CPP, though I can puzzle most of it out with Cygwin given enough time.

Anyways, the error ouput is too large to be posted here in all at once, since there's a 6000 character limit. I'll post a large portion this time, and the last of it in the next post.

g++ -c -Wall -O -ggdb src/avatar.cpp -o obj/avatar.o
g++ -c -Wall -O -ggdb src/colorTable.cpp -o obj/colorTable.o
g++ -c -Wall -O -ggdb src/commandTable.cpp -o obj/commandTable.o
g++ -c -Wall -O -ggdb src/commands.cpp -o obj/commands.o
g++ -c -Wall -O -ggdb src/editHandlers.cpp -o obj/editHandlers.o
g++ -c -Wall -O -ggdb src/loginHandlers.cpp -o obj/loginHandlers.o
g++ -c -Wall -O -ggdb src/main.cpp -o obj/main.o
g++ -c -Wall -O -ggdb src/smysql.cpp -o obj/smysql.o
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h: In member function `typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_copy(const std::_Rb_tree_node<_Val>*, std::_Rb_tree_node<_Val>*) [with _Key = std::string, _Val = std::pair<const std::string, std::string>, _KeyOfValue = std::_Select1st<std::pair<const std::string, std::string> >, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, std::string> >]':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:768: instantiated from `std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::operator=(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&) [with _Key = std::string, _Val = std::pair<const std::string, std::string>, _KeyOfValue = std::_Select1st<std::pair<const std::string, std::string> >, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, std::string> >]'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_map.h:218: instantiated from `std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = std::string, _Tp = std::string, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, std::string> >]'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_algobase.h:247: instantiated from `_OutputIterator std::__copy(_RandomAccessIterator, _RandomAccessIterator, _OutputIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >*, _OutputIterator = std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >*]'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_algobase.h:266: instantiated from `_OutputIterator std::__copy_aux2(_InputIterator, _InputIterator, _OutputIterator, __false_type) [with _InputIterator = std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >*, _OutputIterator = std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >*]'

"Life Sucks, Then You Die."
Top

Posted by IAmSlime   USA  (26 posts)  Bio
Date Reply #16 on Fri 20 Jan 2006 05:25 AM (UTC)
Message
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_algobase.h:296: instantiated from `_OutputIterator std::__copy_ni2(_InputIterator, _InputIterator, _OutputIterator, __true_type) [with _InputIterator = std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >*, _OutputIterator = __gnu_cxx::__normal_iterator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >*, std::vector<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >, std::allocator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > > > > >]'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_algobase.h:317: instantiated from `_OutputIterator std::__copy_ni1(_InputIterator, _InputIterator, _OutputIterator, __true_type) [with _InputIterator = __gnu_cxx::__normal_iterator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >*, std::vector<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >, std::allocator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > > > > >, _OutputIterator = __gnu_cxx::__normal_iterator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >*, std::vector<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >, std::allocator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > > > > >]'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_algobase.h:358: instantiated from `_OutputIterator std::copy(_InputIterator, _InputIterator, _OutputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >*, std::vector<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >, std::allocator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > > > > >, _OutputIterator = __gnu_cxx::__normal_iterator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >*, std::vector<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >, std::allocator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > > > > >]'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/vector.tcc:121: instantiated from `typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, __gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >, _Alloc = std::allocator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > > >]'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_vector.h:701: instantiated from `void std::vector<_Tp, _Alloc>::clear() [with _Tp = std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > >, _Alloc = std::allocator<std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<const std::string, std::string> > > >]'
src/smysql.cpp:92: instantiated from here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:1029: warning: '__top' might be used uninitialized in this function
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:365: warning: '__tmp' might be used uninitialized in this function
g++ -c -Wall -O -ggdb src/socket.cpp -o obj/socket.o
g++ -c -Wall -O -ggdb src/split.cpp -o obj/split.o
src/split.cpp: In function `std::string quotesSplit(const std::string&, std::string&)':
src/split.cpp:93: warning: control reaches end of non-void function
g++ -c -Wall -O -ggdb src/stringutil.cpp -o obj/stringutil.o
g++ -c -Wall -O -ggdb src/timer.cpp -o obj/timer.o
g++ -c -Wall -O -ggdb src/timestamp.cpp -o obj/timestamp.o
g++ -c -Wall -O -ggdb src/world.cpp -o obj/world.o
rm -f scratch
g++ -o scratch obj/avatar.o obj/colorTable.o obj/commandTable.o obj/commands.o obj/editHandlers.o obj/loginHandlers.o obj/main.o obj/smysql.o obj/socket.o obj/split.o obj/stringutil.o obj/timer.o obj/timestamp.o obj/world.o -lmysqlclient -lcrypt
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [all] Error 1


Thanks Gammon Forum-Users, for all your help. You rock.

-Slime

"Life Sucks, Then You Die."
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #17 on Fri 20 Jan 2006 07:46 AM (UTC)
Message
Isn't this the wrong place to ask? Why not ask the developer of Dragons Square?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #18 on Fri 20 Jan 2006 10:27 PM (UTC)
Message
I believe the instantiation errors are the reason I stopped trying to compile on Cygwin. Sorry about that, but I'm really not sure what to do about them.

Asking the original programmer would probably shed some light on these things. His e-mail was in the readme I to believe.

~Nick Cash
http://www.nick-cash.com
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #19 on Sun 22 Jan 2006 02:47 PM (UTC)
Message
SQL problems aside( Cygwin has no direct support for it ) the STL problems here are not restricted to just this base.

Quote:

Compiling o/imc.o....
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_list.h: In function `void imcban(char_data*, std::string)':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_list.h:435: warning: '__p' might be used uninitialized in th
is function
make[1]: *** [o/imc.o] Error 1


I get this when trying to compile my C++ code in Cygwin as well so whatever the issue is is either something we're all doing wrong or a bug in Cygwin's version of the STL.
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #20 on Mon 23 Jan 2006 02:21 AM (UTC)
Message
I agree. Whats strange is I use STL in many programs on Cygwin and never have issues. Those are usually significantly smaller prorams though.

~Nick Cash
http://www.nick-cash.com
Top

Posted by IAmSlime   USA  (26 posts)  Bio
Date Reply #21 on Mon 13 Feb 2006 10:42 PM (UTC)

Amended on Mon 13 Feb 2006 10:43 PM (UTC) by IAmSlime

Message
Hey, sorry I've been M.I.A. for so long. I was busy for awhile with transitioning to a new job, and so haven't kept up to date with alot of stuff... Also had to format my computer.. Anyways, I re-installed my Dev-C++ and my Cygwin and downloaded, but didn't install, a copy of Code:Blocks and some other Dev-C++ variant...

I went to email Rendelven about help with porting the code over to be more stable on a Win-system.. Unfortunately his webpage seems to be down.. I'm hoping WhiteKnight might be able to post/email me a description of what he had to do to disable the crypt function (I don't think it's really necessary at this early of a phase) because it's just about the only error holding me back from compiling this codebase under Dev-C++... Well, here's hopin'..

Thanks for your continued assistance and advice, and just for clarification I do still intend to email Rendelven with my issues and seek his assistance as well, but I'd really help if I could get some input from here as well..

-Slime

"Life Sucks, Then You Die."
Top

Posted by IAmSlime   USA  (26 posts)  Bio
Date Reply #22 on Wed 15 Feb 2006 07:41 PM (UTC)
Message
Well, I haven't heard from WhiteKnight just yet, but I think I managed to contain the Crypt function and so I was able to -almost- compile in Dev-C++ again.. The issue I am now having seems to be related to mysql_com.h, (It's a DevPack Include I downloaded somewhere) on lines 299 and line 300. I can't post the error or the file itself here just yet because I am not at home. However, I can comment out a line (It doesn't seem to matter which I comment out, the other one stays as an error.) but then if I comment out both, I get Linker Errors. I'm assuming Linker Errors are a step backwards from where I was just a few moments before. Anyways, I will post the Error and the contents of the file on the forum later this afternoon.

For the time being, could someone define a Linker Error to me?

Thank you, in advance, for whatever help you can provide.

-Slime

"Life Sucks, Then You Die."
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #23 on Wed 15 Feb 2006 08:14 PM (UTC)
Message
Link errors are when everything compiles correctly, but some functions are not actually found. For example,
extern int i; i = 3;
will produce a link error in isolation, but not a compile error. This is because the compile is satisfied that the code is syntactically correct. But the linker needs to find the memory allocated for 'i' before assigning anything to it.

More common errors are when .o files aren't given to the linker, when the .o file in question contains a whole bunch of function definitions.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by IAmSlime   USA  (26 posts)  Bio
Date Reply #24 on Wed 15 Feb 2006 08:39 PM (UTC)
Message
Oh, so I guess it could be a good thing. Now I just gotta figure out what it's missing. Thanks Ksilyan.

"Life Sucks, Then You Die."
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #25 on Wed 15 Feb 2006 08:47 PM (UTC)
Message
Well, I don't know if I'd call it a good thing... :) Sometimes link errors can be harder to figure out than syntax errors. With a syntax error it can tell you exactly what's going on. But with a link error all it can say is "symbol not found", or "duplicate symbol". It gets especially difficult when you have to deal with linking several libraries together, all of which link in statically different versions of the C runtime library (this is mainly a problem on Windows).

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #26 on Thu 16 Feb 2006 12:59 AM (UTC)
Message
You probably aren't linking the MySQL library. If you want to be able to connect you will also need libwsock32.a.

~Nick Cash
http://www.nick-cash.com
Top

Posted by IAmSlime   USA  (26 posts)  Bio
Date Reply #27 on Thu 16 Feb 2006 04:51 AM (UTC)
Message
/*
The following function is not meant for normal usage
Currently it's used internally by manager.c
*/
struct sockaddr;
int my_connect(my_socket s, const struct sockaddr *name, unsigned int namelen,
unsigned int timeout);


Line 299 starts with INT and Line 300 starts with UNSIGNED
Those are from MySql_Com.H which comes from some BloodShed Dev-CPP update I downloaded... Now, here is the only errors remaining between me and a successful compile of Avatar.CPP;

Line 299 - 'SOCKET' was not declared in this Scope
Line 299 - expected primary-expression before "const"
Line 299 - expected primary-expression before "unsigned"
Line 300 - expected primary-expression before "unsigned"
Line 300 - intializer expression list treated as compound expression

The only one of those I even vaguely understand is the first one about a socket, but I don't see where it's having that issue... Well, I want to try and avoid pasting the contents of that entire file here since it's over 300 lines long.. But I'll have to see what all info you guys need to help me out.

On a positive note, I managed to make small contact with Rendelven the coder, but he is "Away" right now, so I can't expect any answers.

Thanks again,

Slime

"Life Sucks, Then You Die."
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #28 on Thu 16 Feb 2006 05:12 AM (UTC)
Message
What is "my_socket" defined as?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by IAmSlime   USA  (26 posts)  Bio
Date Reply #29 on Fri 17 Feb 2006 01:47 AM (UTC)
Message
I'm not home yet, so I can't really give you an answer yet, but for my own personal reference.. Which file would that be found in? MySql_Com.h?

"Life Sucks, Then You Die."
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


143,241 views.

This is page 2, subject is 4 pages long:  [Previous page]  1  2 3  4  [Next page]

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.