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 ➜ Compiling the server ➜ compiling server in Bloodshed c++

compiling server in Bloodshed c++

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


Pages: 1  2 

Posted by Seifz   (24 posts)  Bio
Date Reply #15 on Sat 17 Jan 2004 05:53 PM (UTC)
Message
In the compiler output, it says " parse errors before 'LPTIMECALLBACK' ". It also says " 'TIME_PERIODIC' undeclared (first use in this function) ".

I didn't use the pragma comments because they don't work in Bloodshed's compiler. Rather, I went to Project->Project Options and then loaded the object files. The other two included libraries seem to be working fine, as I no longer have those other errors, so I can't imagine why this one isn't. WIN32 seems to be defined all over SMAUG, but if I do have to define it again, how do I do it? I'm definitely not a C programmer. :-(

Note: The linker errors remain the same. undeclared references to timeSetEvent and timeKillEvent.

Thanks for the help so far!
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #16 on Sat 17 Jan 2004 07:07 PM (UTC)
Message
OK, here's a tip.

Because you are not using the Microsoft compiler, don't use the Windows version of SMAUG. When I compile SMAUG with Cygwin for instance, I use the Unix version.

I added those mmXXX calls myself for timing purposes, partly because they did something I needed (I can't remember what) and because they worked.

I suggest ditching the Windows source, and concentrate on getting the Unix one going. There is a version here on this site (with MXP added).

However if you are persisting, I think the parse error is simply because of LPTIMECALLBACK not being declared.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Seifz   (24 posts)  Bio
Date Reply #17 on Sat 17 Jan 2004 07:13 PM (UTC)
Message
I'll try to get it to compile in Dev-C++ (the Unix source). I'd rather not download anything as large as Cygwin. Thanks.
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.


67,093 views.

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

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.