I'm having some problems getting a plugin (winsock:
http://forum.thegamecreators.com/?m=forum_view&t=109593&b=22) to work in visual studio C++ 2008.
Firstly, will that plugin work with the latest version of DGDK and visual studio?
I understand from the thread that the project properties need to be set to Multi-threaded Debug (/MTd) and that the library needs to be included. I have done both of those steps. Now, what libraries to exclude? According to the MSDN library I need to do the following:
-Changed 'Project settings | Linker | Input | Ignore Specific Library' to 'libc.lib, libcmt.lib, msvcrt.lib, libcd.lib, msvcrtd.lib' (see link 1)
-Changed 'Project settings | Linker | System | Sub System' to 'Windows (/SUBSYSTEM:WINDOWS)'. (see link 2)
Link 1:
http://msdn2.microsoft.com/en-us/library/aa267384(VS.60).aspx
Link 2:
http://msdn2.microsoft.com/en-us/library/aa267384(VS.60).aspx
I did all of that, and still had linker errors. Fortunately, I randomly attempted Multi-threaded Debug (/MTd) whilst excluding the libraries: libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib which are supposed to be excluded for Multithreaded (libcmt.lib); without debug. The programs compiled but with some warnings. Sadly, after trying to use strings fatal linker errors returned and the following debug appears when trying to compile:
1>------ Build started: Project: Server Test, Configuration: Debug Win32 ------
1>Compiling...
1>project.cpp
1>Linking...
1>libcpmtd.lib(xdebug.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(stdthrow.obj) : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (?_Debug_message@std@@YAXPB_W0I@Z)
1>C:\Documents and Settings\Michael Pryor\Desktop\Work Related\Programming 08\Tests\Server Test\Debug\Server Test.exe : fatal error LNK1120: 3 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Michael Pryor\Desktop\Work Related\Programming 08\Tests\Server Test\test project\Debug\BuildLog.htm"
1>Server Test - 4 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
That's about it; where am I going wrong?