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 ➜ SMAUG ➜ SMAUG coding ➜ compiling smaugwin....

compiling smaugwin....

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


Posted by Fender   (10 posts)  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
Top

Posted by Fender   (10 posts)  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?
Top

Posted by Zeno   USA  (2,871 posts)  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
Top

Posted by Fender   (10 posts)  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.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  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
Top

Posted by Fender   (10 posts)  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?
Top

Posted by David Haley   USA  (3,881 posts)  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
Top

Posted by Fender   (10 posts)  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?
Top

Posted by Nick Gammon   Australia  (23,158 posts)  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
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.


19,951 views.

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.