Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须使用 FlasCC 编译一个 C++ 项目来创建一个 swf。我能够编译所有 CPP 文件,除了那些使用 Win32 API ("Windows.h", DirectX,etc)的文件。我在 cygwin 文件夹/usr/include/w32api上看到了 api 库,但在 FlasCC sdk 文件夹上没有看到。我怎样才能链接它们?
你不能。Flascc 使用 FreeBSD API,因此除非您编写它,否则根本无法使用任何特定于 Windows 的内容。甚至提供的 libc 也有些有限,而且很多 API 都是虚拟的。大多数 IO 和系统相关的代码都需要重写才能与 flascc 一起使用。