我已经能够在使用VS2010 C ++ Express Edition的PC上创建/编译simple_extension.dll(32位)。我在原生扩展程序部分WHesse's article上关注Building on Windows。另一方面,我的电脑有Windows 2008 Server R2 64位,VS2010 Ultimate和Dart 64bit(SDK版本1.5.0-dev.4.17)。
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
找不到http://dart.googlecode.com/svn/trunk/dart/samples/sample_extension/sample_extension.cc中的。
猜猜但我不认为文章的构建步骤是针对完整版VS2010 C ++项目还是64位?
有没有人为sample_extension项目提供VS2010 C ++(完整版)解决方案文件?
更新:运行example_build.dart的输出
Observatory listening on http://127.0.0.1:1283
Building project "C:\Users\OSSDevYorgi\DartPlayground\ccompile-master\example\../example/sample_extension.yaml"
sample_extension_dllmain_win.cc
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\windows.h(151) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory
sample_extension.cc
sample_extension.cc(1) : fatal error C1083: Cannot open include file: 'string.h': No such file or directory
Generating Code...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
sample_extension_dllmain_win.cc
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\windows.h(151) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory
sample_extension.cc
sample_extension.cc(1) : fatal error C1083: Cannot open include file: 'string.h': No such file or directory
Generating Code...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
Building complete with some errors