Okay, disregard the post above. I removed -Werror from the makefile, and I ran make on the .c files. This displayed the errors but continued anyway. However, when I ran the executable "swreality.exe" the process started...
Quote: Isaiah@Monolith_Mobile ~/swrfuss/src
$ ../src/swreality.exe
Sat May 15 11:10:03 2010 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sat May 15 11:10:03 2010 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Sat May 15 11:10:03 2010 :: Loading commands
Sat May 15 11:10:03 2010 :: Loading sysdata configuration...
Sat May 15 11:10:03 2010 :: Loading socials
Sat May 15 11:10:03 2010 :: Loading skill table
Sat May 15 11:10:03 2010 :: Sorting skill table...
Sat May 15 11:10:03 2010 :: Loading herb table
Sat May 15 11:10:03 2010 :: Making wizlist
Sat May 15 11:10:03 2010 :: Initializing random number generator
Sat May 15 11:10:03 2010 :: Setting time and weather
Sat May 15 11:10:03 2010 :: Assigning gsn's
Sat May 15 11:10:03 2010 :: Reading in area files...
And then it stopped there. Now why would there be a problem with reading area files?
The funny thing is, not too long ago, I had just installed this version of SWRFUSS, compiled it and ran it on Cygwin, so its a little strange to see it not working now.
One of the command-line options turns errors into warnings (-Werror or something like that) so you could take that out, and then they are just warnings.
Or, work out what the warning is (see man gcc) and add the -Wno-whatever to the make.
How do you use -Werror? Is it used with make (i.e. make -Werror)? Or where is it applied?
Ive looked all over the net and nothing really comes up on it or how to use it. Thanks for the help, again.
Given the information in this, what do I need to do to supress the warnings (instead of having to change code)?
One of the command-line options turns errors into warnings (-Werror or something like that) so you could take that out, and then they are just warnings.
Or, work out what the warning is (see man gcc) and add the -Wno-whatever to the make.
By the way, how are you able to select, copy and paste from Cygwin as you do? I have had to type everything thus far. Thanks again for your help. Love those youtube videos you have up. I just discovered em'!
-Isaiah
Click on the system menu (top LH corner) and then you can select Edit -> Mark (from memory), then click in the window to select text, then hit Enter to complete the selection and copy to the clipboard.
Thanks a bunch, Nick. But here comes another question at you. If in my re-install the gcc I selected is restrictive, how is one to know what is an appropriate version of gcc to use for my purposes in getting this MUD up and running? The version of GCC that was installed was in the Cygwin setup, yes?
By the way, how are you able to select, copy and paste from Cygwin as you do? I have had to type everything thus far. Thanks again for your help. Love those youtube videos you have up. I just discovered em'!
Okay. So the error as I discovered is in the current directory I was in. I typed pwd in Cygwin and found out I was somewhere in Java Land due to the fact that I had changed both my PATH and HOME system environments. Now, when I go to compile any source code, be it SMAUG or SWR, I get a flood of errors. An example is as follows:
$ make
make -s swreality
Compiling o/imc.o....
cc1: warnings being treated as errors
imc.c: In fucntion 'imcone_argument':
imc.c:368: error: array subscript has type 'char'
and another example error line it gives down the page is:
imc.c:2554 error: the address of 'url' will always evaluate as 'true'
I recently uninstalled Cygwin, and reinstalled it. I went to place the .tar file for the code in my C:\cygwin\home directory, but when I did and opened up Cygwin and typed 'ls' it did not list the file. Any thoughts on why this is?
First I thought: Why isn't my named folder listed in C:\cygwin\home as C:\cygwin\home\Isaiah? There is no Isaiah directory.
Second I thought: Cygwin is listing the command prompt as Isaiah@MonolithMobile ~ ... maybe its looking for the Isaiah folder.
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.