StaticLibrary fail build

Hello,

I’m encounting a very strange error,

I’m trying to add the RakNet lib to the Engine, but i got this errors.

http://puu.sh/jzjfa/4b7e2796c8.png

I turn the .lib file to /md - dll on the RakNet LibStatic solution,
I added the build.cs here:

Engine\Source\ThirdParty\RakNet\RakNet.Build.cs

this is the RakNet.cs :

using UnrealBuildTool;

public class RakNet : ModuleRules
{
public RakNet(TargetInfo Target)
{
         Type = ModuleType.External;

             if (Target.Platform == UnrealTargetPlatform.Win64)
             {
                PublicIncludePaths.Add(UEBuildConfiguration.UEThirdPartySourceDirectory + "RakNet/RakNet-master/Source/");
                PublicLibraryPaths.Add(UEBuildConfiguration.UEThirdPartySourceDirectory + "RakNet/RakNet-master/Lib/");
                PublicAdditionalLibraries.Add("RakNet_vs2008_libstatic_release_x64.lib");
             }
      }
}

Here is the StaticLib solution config:

http://puu.sh/jzjh2/6beb3d9705.png

http://puu.sh/jzjnu/88d1d7bc13.png

i change the Runtime lib to /MD /MT /MDD but i always got the same erro, as if the library didn’t change…
i also try without the lib file which i’m creating, i got error because it is not found, so it confirm that the generation work.

I’m really out of idea, if anyone have a solution for this problem.

Thanks.

ok i fixed it… i’m stupid sometimes, i’m compiling in release but editing settings for Debug… viva visual -__-