[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  O folder
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

O folder

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


Pages: 1 2  

Posted by Drene   (8 posts)  [Biography] bio
Date Tue 11 Apr 2017 08:09 PM (UTC)
Message
I have compiled smaugfuss and it compiled without any error but i suppose there should be .O files in the O folders but i dont see any .o files.

Please is this how it normally is without the .o files or something is wrong

Thanks
Drene
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 11 Apr 2017 08:16 PM (UTC)
Message
Which operating system? Are you using Cygwin?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Drene   (8 posts)  [Biography] bio
Date Reply #2 on Tue 11 Apr 2017 08:38 PM (UTC)
Message
Nick Gammon said:

Which operating system? Are you using Cygwin?

Am usinv win32 and yes i run it with cygwin
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #3 on Wed 12 Apr 2017 10:56 AM (UTC)
Message
Quote:
and it compiled without any error

So what's the problem?

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Drene   (8 posts)  [Biography] bio
Date Reply #4 on Wed 12 Apr 2017 11:34 AM (UTC)

Amended on Wed 12 Apr 2017 03:53 PM (UTC) by Fiendish

Message
Fiendish said:

Quote:
So what's the problem?


i suppose there are meant to be the.o files in the o folders like some files are supposed to change to .o if not all but i cant find any file with .o even in the o folder

2. well i thought it might not be a problem so i continues with the nohup ./startup but it does nohup.out and continues to show a command prompt popping up and immediately close...anything wrong??

please bear with me.


Thanks
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #5 on Wed 12 Apr 2017 03:56 PM (UTC)

Amended on Wed 12 Apr 2017 03:59 PM (UTC) by Fiendish

Message
Object files are an intermediate component of compilation, but they are not needed after compilation is completed.
You said it compiled without error, so they don't need to be there anymore.
Perhaps it didn't compile without error, and you just didn't see the error.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Drene   (8 posts)  [Biography] bio
Date Reply #6 on Wed 12 Apr 2017 07:54 PM (UTC)
Message
Thanks fiendish, you might be correct or maybe you dont just get me, in a manual i read, i learned that after compiling the src .c files would change into .o although some files might not be converted but in my cases non changed to .o so am asking is it compulsory for it to change to .o and i believeam supposed to have another smaug.exe in the src files....what am i doing wrong
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Wed 12 Apr 2017 09:33 PM (UTC)
Message
http://www.gammon.com.au/smaug/howtocompile.htm

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #8 on Wed 12 Apr 2017 09:33 PM (UTC)

Amended on Wed 12 Apr 2017 09:35 PM (UTC) by Fiendish

Message
Drene said:
in a manual i read, i learned that after compiling the src .c files would change into .o

Well, yes. First the compiler takes every source file and converts it into a binary .o file. But then the linker takes all of those .o files and converts them into your final executable. After that you don't need the .o files anymore so they might just be removed.

Quote:
is it compulsory for it to change to .o

In general it is not required. It is possible to go directly from source files to the final executable by doing compilation and linking in the same step without intermediate files. I don't know how your build script is configured, though, so I can't say whether you should be getting them for your particular case.

Quote:
i believeam supposed to have another smaug.exe

If you don't have smaug.exe, what are you running?

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #9 on Wed 12 Apr 2017 09:34 PM (UTC)
Message
He's running:


nohup ./startup

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #10 on Wed 12 Apr 2017 09:35 PM (UTC)
Message
Nick Gammon said:

He's running:


nohup ./startup



Smarty pants. :)

I don't know how smaugfuss works, so I don't know what that means.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #11 on Thu 13 Apr 2017 (UTC)
Message
It basically runs smaug.exe.


#! /bin/csh -f

# Set the port number.
set port = 4020
if ( "$1" != "" ) set port="$1"

# Change to area directory.
cd ../area

# Set limits.
limit coredumpsize unlimited
limit stacksize unlimited
if ( -e shutdown.txt ) rm -f shutdown.txt

while ( 1 )
    # If you want to have logs in a different directory,
    #   change the 'set logfile' line to reflect the directory name.
    set index = 1000
    while ( 1 )
	set logfile = ../log/$index.log
	if ( ! -e $logfile ) break
	@ index++
    end

    # Record starting time
    date > $logfile
    date > ../area/boot.txt

    # Run SMAUG.
    # Check if already running
    set matches = `netstat -an | grep ":$port " | grep -c LISTEN`
    if ( $matches >= 1 ) then
        # Already running
        echo Port $port is already in use.
        exit 0
    endif
    ../src/smaug $port >&! $logfile

    # Restart, giving old connections a chance to die.
    if ( -e shutdown.txt ) then
	rm -f shutdown.txt
	exit 0
    endif
    sleep 60 
end


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Drene   (8 posts)  [Biography] bio
Date Reply #12 on Thu 13 Apr 2017 03:24 PM (UTC)
Message
Ok now I understand, and i have smaug.exe but i thought another should be formed at src after compilation thanks y'all
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #13 on Thu 13 Apr 2017 08:51 PM (UTC)
Message
It's the "o" folder not the "O" folder. In my case the files are there:


~/Development/smaugfuss/src$ ls o
act_comm.o  chess.o     fight.o     makeobjs.o  planes.o     skills.o
act_info.o  clans.o     handler.o   mapout.o    player.o     special.o
act_move.o  color.o     hashstr.o   mapper.o    polymorph.o  tables.o
act_obj.o   comments.o  hint.o      mccp.o      renumber.o   track.o
act_wiz.o   comm.o      hotboot.o   misc.o      reset.o      update.o
ban.o       const.o     imm_host.o  mpxset.o    save.o       variables.o
boards.o    db.o        interp.o    mud_comm.o  services.o   weather.o
build.o     deity.o     liquids.o   mud_prog.o  sha256.o
calendar.o  dns.o       magic.o     news.o      shops.o

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Drene   (8 posts)  [Biography] bio
Date Reply #14 on Thu 13 Apr 2017 10:53 PM (UTC)
Message
Its not showing here.
[Go to top] 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.


3,705 views.

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

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]