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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  compiling smaugwin....

compiling smaugwin....

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


Posted by Fender   (10 posts)  [Biography] bio
Date Sat 01 Nov 2003 02:43 PM (UTC)
Message
How do i go about doing this? it is precompiled when you get it. i have MS Visual Suite 6.0, but im not sure how i would go about compiling this project.....can somebody help me with detailed instructions?

thanks in advance
[Go to top] top

Posted by Fender   (10 posts)  [Biography] bio
Date Reply #1 on Sat 01 Nov 2003 03:41 PM (UTC)
Message
Just adding in, i found the msvc++ workspace/project file, but when i tried to compile it it gave me like 57 errors mostly in fight.c and polymorph.c, and about 600 warnings in tables.c.......whats going on?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #2 on Sat 01 Nov 2003 04:03 PM (UTC)

Amended on Sat 01 Nov 2003 04:04 PM (UTC) by Zeno

Message
Were all the errors the same? Post some of the errors that are most common, here.

[EDIT] Actually, is your other post those errors?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Fender   (10 posts)  [Biography] bio
Date Reply #3 on Sat 01 Nov 2003 11:33 PM (UTC)
Message
yeah my newest one in compiling the server, they are all header files that im not even using, i dont understand it, theres over 5000 errors.
[Go to top] top

Posted by Nick Gammon   Australia  (22,991 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Sun 02 Nov 2003 09:21 PM (UTC)
Message
At least post a selection of the errors, preferably starting with the first ones. Just saying "it gave me like 57 errors" doesn't give us much to go on. With errors the error message is the important thing, not the fact that you got the message.

- Nick Gammon

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

Posted by Fender   (10 posts)  [Biography] bio
Date Reply #5 on Sun 02 Nov 2003 09:33 PM (UTC)
Message
Actually I only have one error left.

LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16

I've been trying to figure this one out for like 24 hours straight.

any one gota simple solution i couldnt realize?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #6 on Mon 03 Nov 2003 04:09 AM (UTC)
Message
This means that you don't have a function called WinMain anywhere...

...which means that either you chose the wrong project settings, or you don't have the function declared, or don't have the preprocessor definitions you need to make it realize it's compiling under Windows.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Fender   (10 posts)  [Biography] bio
Date Reply #7 on Mon 03 Nov 2003 03:25 PM (UTC)

Amended on Mon 03 Nov 2003 09:24 PM (UTC) by Fender

Message
"This means that you don't have a function called WinMain anywhere...

...which means that either you chose the wrong project settings, or you don't have the function declared, or don't have the preprocessor definitions you need to make it realize it's compiling under Windows."

I do have the function WinMain somewhere.
And I HAVE the right project settings, and the function is declared.

which preprocessor definitions do i need?

the ones i have are:

WIN32,_DEBUG,_WINDOWS,_MBCS

o yeah, i did find more than one, so i left onlt one of them, in comm.c

and when i compiled i got the error:

LINK : error LNK2001: unresolved external symbol _WinMain

now what?
[Go to top] top

Posted by Nick Gammon   Australia  (22,991 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Tue 04 Nov 2003 04:10 AM (UTC)
Message
I think the one in comm.c is the correct one. I don't see why SMAUG wants WinMain, it is a Unix (console) app. You need main, and it should be in comm.c.

As an example on this site is a file:

ftp://ftp.gammon.com.au/smaug/smaug1.4a_win_mxp_src.zip

I just unzipped that into a directory, opened the project file with MS VC++ and compiled. I got one warning and no errors.

My project settings are:

WIN32,_DEBUG,_CONSOLE,_MBCS

Note _CONSOLE instead of _WINDOWS.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


17,106 views.

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 HostDash]