   Trying to set up with Raknet
  I've been trying to start using raknet for C++ networking.In order to set up a dll. I followed the tutorial at: http://www.jenkinssoftware.com/raknet/manual/compilersetup.htmlObviously its a bit out of date for me as im using Microsoft Visual Studio 2008 express. I compiled the dll and that went all ok. I then created a raknet folder, inside which i put include and lib. Inside the lib i put the dll with the .lib files i just created from compilation, and inside the include folder i placed all the header files from raknet source code. I then linked to these folders in the tools->options->vc directories->include and library. I then created a new project and copied the source code from here: http://www.jenkinssoftware.com/raknet/manual/tutorialsample1.htmlwhat a surprise, it doesnt compile and i get an error:  error LNK2019: unresolved external symbol "public: __thiscall SystemAddress::SystemAddress(unsigned int,unsigned short)"Turns out if I just include all the source code in the project then the project compiles fine, so it must be my linking or the generation of the dll and lib files. You might say, well at least its working just go with that, the problem is that if you include all the raknet source code, each time you want to compile, it takes a looooong time, rather than if using a dll.The project i used to create the .lib and dll files is available to download here:http://www.technostu.com/raknetdll.rarPlease feel free to download it and see if the settings are wrong or something. You will need winrar to extract it.   
  The unresolve external just mean the linker can't find the symbols for that function call. Setting the VS directory to point to the include and library path only tells VS to look their for .lib and .h used in your project. If you don't include *.lib in you build then setting the directories is pointless since you are not actually using any library in your example. Unless there is a #pragma comment(lib, ) in your code. You have to specify to VS to link against that library file.   ;Quote:Original post by cgrantThe unresolve external just mean the linker can't find the symbols for that function call. Setting the VS directory to point to the include and library path only tells VS to look their for .lib and .h used in your project. If you don't include *.lib in you build then setting the directories is pointless since you are not actually using any library in your example. Unless there is a #pragma comment(lib, ) in your code. You have to specify to VS to link against that library file.I dont understand what you are saying. I have included the dll and the lib files in both those directories i set up and in the project folder just in case. Neither works. I have set up the linking just like with all the previous external libraries I have used in the past, such as Devil and box2d. are you saying i need to add another include to the example code at:http://www.jenkinssoftware.com/raknet/manual/tutorialsample1.html?   ;Quote:Original post by stu2000Quote:Original post by cgrantThe unresolve external just mean the linker can't find the symbols for that function call. Setting the VS directory to point to the include and library path only tells VS to look their for .lib and .h used in your project. If you don't include *.lib in you build then setting the directories is pointless since you are not actually using any library in your example. Unless there is a #pragma comment(lib, ) in your code. You have to specify to VS to link against that library file.I dont understand what you are saying. I have included the dll and the lib files in both those directories i set up and in the project folder just in case. Neither works. I have set up the linking just like with all the previous external libraries I have used in the past, such as Devil and box2d. are you saying i need to add another include to the example code at:http://www.jenkinssoftware.com/raknet/manual/tutorialsample1.html?Sry my bad, blonde moment, just realised i had forgotten the step that you were explaining but wasn't understanding. Forgot to add this bit shown in image:http://www.uploadscreenshot.com/image/60367/8047478Issue resolved. Thanks