The Dawn Of Time
The Official Forums for the Dawn Of Time Mud Codebase
 
Log in Register FAQ Memberlist Search The Dawn Of Time Forum Index Goto the Official Dawn Website

Cygwin Error: ISO C++ forbids converting a string constant

 
Post new topic   Reply to topic    The Dawn Of Time Forum Index » Getting Started
View previous topic :: View next topic  
Author Message
mmoritz80



Joined: 21 Sep 2018
Posts: 1

PostPosted: Fri Sep 21, 2018 6:38 pm    Post subject: Cygwin Error: ISO C++ forbids converting a string constant Reply with quote

I've downloaded and uncompressed the files for Dawn of Time. After running the configuration successfully, I used the 'make clean' command. I then tried to use the 'make' command but I get a whole ton of errors about converting strings to constants... here's the last warning and the error.


Code:
act_info.cpp: In function ‘void do_classinfo(char_data*, char*)’:
act_info.cpp:5093:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   do_classinfo(ch, "");
                      ^
make: *** [makefile:99: act_info.o] Error 1


I'm hoping that someone has used a recent version of Cygwin lately and can help me figure out what needs to be done to get my MUD up and running.

Thanks for reading my plea for help!


Back to top
View user's profile Send private message AIM Address
Lord_Ixliam



Joined: 20 Jun 2006
Posts: 40
Location: USA

PostPosted: Mon Oct 08, 2018 1:58 pm    Post subject: Reply with quote

Cygwin is probably using a newer version of C/C++. What you need to do is roll it back to an earlier version of C/C++, or tell the compiler to use that version of gcc to compile it with. If you can get around 4.2 - 4.8 you shouldn't have an issue. I don't use Cygwin, but the same issue happens with Linux and is easily fixed by installing an older version of gcc and then telling the make file to use that version to compile with.



_________________
"You no take candle!"
Back to top
View user's profile Send private message
cheshik



Joined: 02 Oct 2018
Posts: 7
Location: Russia

PostPosted: Thu Oct 11, 2018 7:36 am    Post subject: Reply with quote

Thank you, Lord_Ixliam!

With Cygwin it does not seem to be easy (https://www.cygwin.com/faq.html):
2.6.

Can I use Cygwin Setup to get old versions of packages (like gcc-2.95)?

Cygwin Setup can be used to install any packages that are on a Cygwin mirror, which usually includes one version previous to the current one. The complete list may be searched at https://cygwin.com/packages/. There is no complete archive of older packages. If you have a problem with the current version of a Cygwin package, please report it to the mailing list using the guidelines at https://cygwin.com/problems.html.

That said, if you really need an older package, you may be able to find an outdated or archival mirror by searching the web for an old package version (for example, gcc2-2.95.3-10-src.tar.bz2), but keep in mind that this older version will not be supported by the mailing list and that installing the older version will not help improve Cygwin.

But how about, for example, Ubuntu? Can you easily install an older version of gcc compiler there? And how to tell make to use this specific version?
Could, please, share you experience.


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Dawn Of Time Forum Index » Getting Started All times are GMT + 13 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2005 phpBB Group
Theme created by Vjacheslav Trushkin