The Dawn Of Time
The Official Forums for the Dawn Of Time Mud Codebase
 
Log in Register FAQ Memberlist Search The Dawn Of Time Forum Index Goto the Official Dawn Website

Error compiling in VC++

 
Post new topic   Reply to topic    The Dawn Of Time Forum Index » Getting Started
View previous topic :: View next topic  
Author Message
Chaoswarp



Joined: 02 Jul 2012
Posts: 3

PostPosted: Mon Jul 02, 2012 4:52 pm    Post subject: Error compiling in VC++ Reply with quote

Hey, first time posting but I have been reading around which codebase is the best and decided to use DOT. Well, I am having trouble compiling the code in VC++, here is the output. Thanks in advance.

Code:
1>------ Build started: Project: dawn, Configuration: Debug Win32 ------
1>  resolve.cpp
1>c:\dawn\src\resolve.cpp(270): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(311): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(325) : see declaration of 'sscanf'
1>c:\dawn\src\resolve.cpp(347): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(380): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(431): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(433): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\dawn\src\resolve.cpp(437): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(440): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(442): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(462): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(472): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(476): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(483): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(110) : see declaration of 'strcat'
1>c:\dawn\src\resolve.cpp(494): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(508): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(537): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\dawn\src\resolve.cpp(555): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\dawn\src\resolve.cpp(556): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\dawn\src\resolve.cpp(559): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\dawn\src\resolve.cpp(561): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\dawn\src\resolve.cpp(563): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\dawn\src\resolve.cpp(586): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\dawn\src\resolve.cpp(609): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(698): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(325) : see declaration of 'sscanf'
1>c:\dawn\src\resolve.cpp(744): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\dawn\src\resolve.cpp(750): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\dawn\src\resolve.cpp(837): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
1>c:\dawn\src\resolve.cpp(1136): error C2664: 'CreateProcessW' : cannot convert parameter 2 from 'char *' to 'LPWSTR'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Back to top
View user's profile Send private message
Tathry



Joined: 10 Jun 2008
Posts: 10
Location: Austin, Texas

PostPosted: Tue Jul 03, 2012 11:53 am    Post subject: Reply with quote

Hey Chaoswarp,

It's good to see someone else starting a DOT based mud Smile What version of VC++ are you using? I do recall having to make some changes with the default settings on all the versions I've run.

I'm not sure if this is of any help, but here's a post that has similar problems to yours: http://www.forums.dawnoftime.org/viewtopic.php?t=2233&highlight=createprocess

Keep us posted on how it's going Smile



_________________
-- Tathry
Back to top
View user's profile Send private message
Chaoswarp



Joined: 02 Jul 2012
Posts: 3

PostPosted: Wed Jul 04, 2012 7:47 am    Post subject: Reply with quote

Hey Tathry,

Thanks for the reply.

Well, I got the code to compile by changing the character set to Multi-Byte. Now I just have to find out how to actually get the server running in the background. It seems after I run the compile and then use the cmd for --createdirs, it just does it thing but I don't see it running in the background.


Back to top
View user's profile Send private message
Tathry



Joined: 10 Jun 2008
Posts: 10
Location: Austin, Texas

PostPosted: Wed Jul 04, 2012 12:27 pm    Post subject: Reply with quote

After you did the --createdirs, did you go back through and try to run the executable? Are you able to connect to the game at all through your mud client? If I recall, I had a lot of trouble getting it up and running as well my first time Smile



_________________
-- Tathry
Back to top
View user's profile Send private message
Chaoswarp



Joined: 02 Jul 2012
Posts: 3

PostPosted: Wed Jul 04, 2012 11:09 pm    Post subject: Reply with quote

I got it work but not after moving all the support, help and area files from the base folder into the 2nd dawn folder that was made when following the steps. It does work though perfectly.


Back to top
View user's profile Send private message
Tathry



Joined: 10 Jun 2008
Posts: 10
Location: Austin, Texas

PostPosted: Fri Jul 06, 2012 12:18 pm    Post subject: Reply with quote

Yeah, now that you mention it, I had to do the same with mine.

Congratz on getting your mud up and running, now comes the fun part of making changes and such, good luck! Feel free to hit us up if you have any more questions!



_________________
-- Tathry
Back to top
View user's profile Send private message
Kalahn
Codebase Developer


Joined: 18 Jan 2003
Posts: 710
Location: New Zealand

PostPosted: Mon Jul 09, 2012 12:56 am    Post subject: Reply with quote

Were you compiling S beta6? (From memory it was clean out of the box on VC 2k8)
What compiler version?

- Kal



_________________
Kalahn
Developer of the Dawn of Time Codebase
http://www.dawnoftime.org/
Back to top
View user's profile Send private message Visit poster's website
Meldrath



Joined: 17 Jul 2012
Posts: 5

PostPosted: Tue Jul 17, 2012 2:08 pm    Post subject: test Reply with quote

I got the server running in Windows 7, I just can't get it to compile in MSVS++ 2010, I get an error about sys\socket.h not being there. I am trying everything so I can get it to compile and I can start making modifications.

BTW to the creator of the codebase... You rock. Seriously, amazing job! Thank you for this opportunity to edit and use a codebase.


Back to top
View user's profile Send private message
Kalahn
Codebase Developer


Joined: 18 Jan 2003
Posts: 710
Location: New Zealand

PostPosted: Fri Jul 20, 2012 6:31 pm    Post subject: Reply with quote

I recommend 1.69s beta6 - it should compile pretty cleanly on VS C++ 2010.

Older instructions for visual studio are at: http://www.dawnoftime.org/getting_started.html#Getting%20Started%20With%20Dawn%20on%20Windows but are now a little dated.

The bottom line is add all the *.cpp and .h files from src directory to a Win32 c++ console application. Do not add any of the files in the subdirectories.

Let us know how you get on.

- Kal



_________________
Kalahn
Developer of the Dawn of Time Codebase
http://www.dawnoftime.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    The Dawn Of Time Forum Index » Getting Started All times are GMT + 13 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2005 phpBB Group
Theme created by Vjacheslav Trushkin