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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUDs
. -> [Folder]  General
. . -> [Subject]  Getting SimpleMud to compile

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Getting SimpleMud to compile
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1  2 

Posted by Thorbenn   (25 posts)  [Biography] bio
Date Thu 18 Aug 2011 01:55 PM (UTC)  quote  ]
Message
Hi,

no idea because i noticed that the created executable under vs 2010 would only work once after compiling and then starting it. after that you couldn't start it again because when you wanted to log in via telnet you always lost connection and your exe would crash. I got me a cheap for dummies book with the vc++ 6 author compiler in it. Only bad thing is you are not permitted to redistriubte the executable and only use it for yourself not with friends etc from how i understood the license.
[Go to top] top

Posted by Vaishaks89   (1 post)  [Biography] bio
Date Mon 04 Jul 2011 02:52 PM (UTC)  quote  ]
Message
'TransXML.exe': Loaded 'C:\Program Files (x86)\Kaspersky Lab\Kaspersky Internet Security 2011\x64\kloehk.dll', Cannot find or open the PDB file
'TransXML.exe': Loaded 'C:\Program Files (x86)\Kaspersky Lab\Kaspersky Internet Security 2011\x64\sbhook64.dll', Cannot find or open the PDB file
This is the error I am getting while using visual studio ultimate version.
I am unable to load the PDB file from this folder. I do not know why the compiler loads the .dll files from kaspersky folder.
Is there any way to disable this folder from being loaded.
Is there any way I could solve the issue.

[Go to top] top

Posted by Thorbenn   (25 posts)  [Biography] bio
Date Sun 03 Jul 2011 05:12 PM (UTC)  quote  ]
Message
hi,

because i didn't want to give up on simple mud i bought a cheap for dummies book which hat visual c++ 6 author edition in it. i thought i could just compile it as easy by pressing compile as the readme says but that isn't the case. i get this error. does anyone know how to add the libs in visual c++ 6?

--------------------Konfiguration: SimpleMUD - Win32 Debug--------------------
Kompilierung läuft...
DatabasePointer.cpp
c:\users\frigg\desktop\simplemud\simplemud\entity.h(14) : fatal error C1083: Include-Datei kann nicht geoeffnet werden: 'BasicLib/BasicLib.h': No such file or directory
Enemy.cpp

...

can't add whole error log because of limit of characters
[Go to top] top

Posted by Thorbenn   (25 posts)  [Biography] bio
Date Fri 24 Jun 2011 10:31 AM (UTC)  quote  ]
Message
Hi,

yes i guess i will be giving up coding on simpleMud eventhough i think this is a ideal base to learn from especially with mr.Pentons book right beside you. I might try to find old gnu compilers to use for this code. Because i really do not want to give up on it.

or i will try my visual studi0 2003 and see if it works there any better.
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Fri 24 Jun 2011 09:02 AM (UTC)  quote  ]
Message
I've run into various problems with Ron Penton's code (I assume this is what you are talking about) not compiling using more modern compilers. It all worked when he wrote the book, but newer compilers have tightened up syntax, and indeed the way things work. I have already spent hours trying to get it to work previously.

I suggest you try instead to use SmaugFUSS or one of the currently-maintained code bases.

- Nick Gammon

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

Posted by Thorbenn   (25 posts)  [Biography] bio
Date Thu 23 Jun 2011 11:39 AM (UTC)  quote  ]
Message
Hi Nick,


this is what i get when running the debugger

'SimpleMUD.exe': Loaded 'C:\Users\Daniel\Desktop\SimpleMUD\Release\SimpleMUD.exe', Symbols loaded.

'SimpleMUD.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\nsi.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\msvcp100.dll', Symbols loaded.

'SimpleMUD.exe': Loaded 'C:\Windows\System32\msvcr100.dll', Symbols loaded.

'SimpleMUD.exe': Loaded 'C:\Windows\System32\mswsock.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\WSHTCPIP.DLL', Cannot find or open the PDB file

The thread 'Win32 Thread' (0x10f8) has exited with code 0 (0x0).

Microsoft Visual Studio C Runtime Library has detected a fatal error in SimpleMUD.exe.



Press Break to debug the program or Continue to terminate the program.







In dbghook.c it shows me always this area:





__declspec(noinline)

void __cdecl _CRT_DEBUGGER_HOOK(int _Reserved)

{

/* assign 0 to _debugger_hook_dummy so that the function is not folded in retail */

(_Reserved);

_debugger_hook_dummy = 0;

}
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Thu 23 Jun 2011 12:59 AM (UTC)  quote  ]
Message
I wouldn't worry about the signed/unsigned mismatch.

The other messages sound like it can't find debugging symbols, itself not a huge worry.

As for the crash, hard to say. Try running it under the debugger.

- Nick Gammon

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

Posted by Thorbenn   (25 posts)  [Biography] bio
Date Wed 22 Jun 2011 09:28 PM (UTC)  quote  ]
Message
Hi,

i am having trouble running SimpleMUD even though it is compiled without errors. It compiles and then starts when i connect via mud client or cmd then i come to the login screen from SimpleMUD and want to make a account. I give in the username and then a password and then it says lost connection to host.

here is what comes after compiling from visual studio ultimate:

'SimpleMUD.exe': Loaded 'C:\Users\Daniel\Desktop\SimpleMUD\Release\SimpleMUD.exe', Symbols loaded.

'SimpleMUD.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\nsi.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\msvcp100.dll', Symbols loaded.

'SimpleMUD.exe': Loaded 'C:\Windows\System32\msvcr100.dll', Symbols loaded.

'SimpleMUD.exe': Loaded 'C:\Windows\System32\mswsock.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Program Files\Kaspersky Lab\Kaspersky Security Suite CBE 11\mzvkbd3.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\psapi.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Unloaded 'C:\Program Files\Kaspersky Lab\Kaspersky Security Suite CBE 11\mzvkbd3.dll'

'SimpleMUD.exe': Unloaded 'C:\Windows\System32\advapi32.dll'

'SimpleMUD.exe': Unloaded 'C:\Windows\System32\sechost.dll'

'SimpleMUD.exe': Unloaded 'C:\Windows\System32\psapi.dll'

'SimpleMUD.exe': Loaded 'C:\Program Files\Kaspersky Lab\Kaspersky Security Suite CBE 11\kloehk.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\psapi.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5\msvcr80.dll', Cannot find or open the PDB file

'SimpleMUD.exe': Unloaded 'C:\Program Files\Kaspersky Lab\Kaspersky Security Suite CBE 11\kloehk.dll'

'SimpleMUD.exe': Unloaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5\msvcr80.dll'

'SimpleMUD.exe': Unloaded 'C:\Windows\System32\advapi32.dll'

'SimpleMUD.exe': Unloaded 'C:\Windows\System32\sechost.dll'

'SimpleMUD.exe': Unloaded 'C:\Windows\System32\psapi.dll'

'SimpleMUD.exe': Loaded 'C:\Windows\System32\WSHTCPIP.DLL', Cannot find or open the PDB file

The thread 'Main Thread' (0x1270) has exited with code -1073741510 (0xc000013a).

The program '[4716] SimpleMUD.exe: Native' has exited with code -1073741510 (0xc000013a).




And what is also weird is there is only one little error in the source code but it doesn't harm the compiling and i don't understand why it is. because it is all fine

SimpleMUD\GameLoop.cpp(139): warning C4018: '<' : signed/unsigned mismatch
[Go to top] top

Posted by Thorbenn   (25 posts)  [Biography] bio
Date Sun 03 Apr 2011 10:13 AM (UTC)  quote  ]

Amended on Sun 03 Apr 2011 10:18 AM (UTC) by Thorbenn

Message
okay i found my error :) now it compiles with no errors. i had a - instead of a _ by the ws2_32.lib


thanks mattias and nick for all the help i really appreciate it :)
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Sat 02 Apr 2011 10:19 PM (UTC)  quote  ]
Message
In the compiler help it should tell you the library belonging to WSAGetLastError as part of the function description. And yes, you add that to the custom libraries to be linked in, in the project linker properties.

- Nick Gammon

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

Posted by Mattias   (6 posts)  [Biography] bio
Date Sat 02 Apr 2011 07:35 PM (UTC)  quote  ]
Message
Now when I look closer... it's the WinSock functions that it can't resolve to. That is, the problem is not with any of the functions from SimpleMUD and libs.

My guess is ws2_32.lib is missing... did you add ws2_32.lib to the Additional Dependencies in the property sheet? It should be under Common Properties -> Linker -> Input -> Additional Dependencies. It should look something like:
ws2_32.lib;python32.lib;%(AdditionalDependencies)
After having been edited with custom libs.

If that's not it I don't know...
[Go to top] top

Posted by Thorbenn   (25 posts)  [Biography] bio
Date Sat 02 Apr 2011 03:38 PM (UTC)  quote  ]
Message
i am using the socketlib folder you gave me. i haven't changed anything in there its like you zipped it up
[Go to top] top

Posted by Mattias   (6 posts)  [Biography] bio
Date Sat 02 Apr 2011 12:29 PM (UTC)  quote  ]
Message
I'm not very good with "error LNK2001: unresolved external symbol" errors.
The problem is that the linker can't find the definitions of those functions.
But since you are using the exact same files as me and now the same setup in VS2010, it should just work.

The code compiles at least, now for the linking step to work...

Do the SocketLib folder contain SocketLibSocket.cpp and those other files? Do they contain the definitions?
[Go to top] top

Posted by Thorbenn   (25 posts)  [Biography] bio
Date Fri 01 Apr 2011 05:14 PM (UTC)  quote  ]
Message
1>------ Build started: Project: SimpleMUD, Configuration: Release Win32 ------
1> DatabasePointer.cpp
1> Enemy.cpp
1> EnemyDatabase.cpp
1> Game.cpp
1> GameLoop.cpp
1>SimpleMUD\GameLoop.cpp(139): warning C4018: '<' : signed/unsigned mismatch
1> ItemDatabase.cpp
1> Logon.cpp
1> Player.cpp
1> PlayerDatabase.cpp
1> Room.cpp
1> RoomDatabase.cpp
1> SimpleMUDLogs.cpp
1> StoreDatabase.cpp
1> Train.cpp
1> SocketLibSocket.cpp
1> SocketSet.cpp
1> Telnet.cpp
1>SimpleMUD.obj : error LNK2001: unresolved external symbol ___WSAFDIsSet@8
1>SimpleMUD.obj : error LNK2001: unresolved external symbol __imp__select@20
1>SocketLibErrors.obj : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__accept@12
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__listen@8
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__send@16
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__closesocket@4
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__socket@12
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__bind@12
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__recv@16
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__setsockopt@20
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__shutdown@8
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__getsockname@12
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__htons@4
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__htonl@4
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__connect@12
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__ioctlsocket@12
1>SocketLibSocket.obj : error LNK2001: unresolved external symbol __imp__getpeername@12
1>SocketLibSystem.obj : error LNK2001: unresolved external symbol __imp__gethostbyname@4
1>SocketLibSystem.obj : error LNK2001: unresolved external symbol __imp__gethostbyaddr@12
1>SocketLibSystem.obj : error LNK2001: unresolved external symbol __imp__WSACleanup@0
1>SocketLibSystem.obj : error LNK2001: unresolved external symbol __imp__inet_addr@4
1>SocketLibSystem.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
1>SocketLibSystem.obj : error LNK2001: unresolved external symbol __imp__inet_ntoa@4
1>C:\Users\Thorbenn\Desktop\SimpleMUD\Release\SimpleMUD.exe : fatal error LNK1120: 24 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



okay thx very much that you are helping me :)

this is what i get now ^^
[Go to top] top

Posted by Mattias   (6 posts)  [Biography] bio
Date Fri 01 Apr 2011 02:19 PM (UTC)  quote  ]

Amended on Fri 01 Apr 2011 02:29 PM (UTC) by Mattias

Message
You are probably in the Solution Explorer, which is where you see all the source files like SimpleMUD.cpp etc.

To see Microsoft.Cpp.Win32.user you need to open the Property Manager. You can find it in the View menu at the top of VS2010. View -> Property Manager. That should open the Property Manager at the same place the Solution Explorer was at.

Now open SimpleMUD -> Release|Win32 and you should see it.

Property Manager is the manager for the "Project Property Sheets" of the project.

Edit:
I also forgot to mention. After you've made a "Property Sheet" and pressed ok in the properties dialog of it. You need to right-click on it and Save it. It won't save automatically.
[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.


6,874 views.

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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]