I'm currently run into problems compiling the sample extension with Visual C++ 2010/2013.
I followed the instruction in the article.
I had no problems make it run on osx, but run into this when I try to compile the dll:
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_Null referenced in function _sample_extension_Init
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_SetNativeResolver referenced in function _sample_extension_Init
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_IsError referenced in function _sample_extension_Init
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_PropagateError referenced in function "struct _Dart_Handle * __cdecl HandleError(struct _Dart_Handle *)" (?HandleError@@YAPAU_Dart_Handle@@PAU1@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_ExitScope referenced in function "void __cdecl SystemRand(struct _Dart_NativeArguments *)" (?SystemRand@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_SetReturnValue referenced in function "void __cdecl SystemRand(struct _Dart_NativeArguments *)" (?SystemRand@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_NewInteger referenced in function "void __cdecl SystemRand(struct _Dart_NativeArguments *)" (?SystemRand@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_EnterScope referenced in function "void __cdecl SystemRand(struct _Dart_NativeArguments *)" (?SystemRand@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_NewBoolean referenced in function "void __cdecl SystemSrand(struct _Dart_NativeArguments *)" (?SystemSrand@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_IntegerToInt64 referenced in function "void __cdecl SystemSrand(struct _Dart_NativeArguments *)" (?SystemSrand@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_IntegerFitsIntoInt64 referenced in function "void __cdecl SystemSrand(struct _Dart_NativeArguments *)" (?SystemSrand@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_IsInteger referenced in function "void __cdecl SystemSrand(struct _Dart_NativeArguments *)" (?SystemSrand@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_GetNativeArgument referenced in function "void __cdecl SystemSrand(struct _Dart_NativeArguments *)" (?SystemSrand@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_PostCObject referenced in function "void __cdecl wrappedRandomArray(__int64,struct _Dart_CObject *)" (?wrappedRandomArray@@YAX_JPAU_Dart_CObject@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_NewSendPort referenced in function "void __cdecl randomArrayServicePort(struct _Dart_NativeArguments *)" (?randomArrayServicePort@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_NewNativePort referenced in function "void __cdecl randomArrayServicePort(struct _Dart_NativeArguments *)" (?randomArrayServicePort@@YAXPAU_Dart_NativeArguments@@@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_StringToCString referenced in function "void (__cdecl*__cdecl ResolveName(struct _Dart_Handle *,int,bool *))(struct _Dart_NativeArguments *)" (?ResolveName@@YAP6AXPAU_Dart_NativeArguments@@@ZPAU_Dart_Handle@@HPA_N@Z)
1>dart_sdl.obj : error LNK2019: unresolved external symbol _Dart_IsString referenced in function "void (__cdecl*__cdecl ResolveName(struct _Dart_Handle *,int,bool *))(struct _Dart_NativeArguments *)" (?ResolveName@@YAP6AXPAU_Dart_NativeArguments@@@ZPAU_Dart_Handle@@HPA_N@Z)