编译失败,D 编程 (GDC)



所以我安装了gdc,试图在命令提示符下进行简单的编译。不确定我的导入\包含是否真的有效?我该怎么办?我 100% 确定该程序使用 Eclipse\dub\dtt\ldc 编译...

*C:Developmentgdcbin>x86_64-unknown-linux-gnu-gdc C:UsersplannDownloadstestMessageAppsrcapp.d --sysroot=C:Developmentgdcsysroot -B "C:Program Files (x86)Microsoft Visual Studio 14.0VClib"
C:UsersplannDownloadstestMessageAppsrcapp.d:13:7: error: undefined identifier 'DWORD'
DWORD bakgrunfar = 0;
^
C:UsersplannDownloadstestMessageAppsrcapp.d:14:7: error: undefined identifier 'DWORD'
DWORD textfar  = 0;
^
C:UsersplannDownloadstestMessageAppsrcapp.d:17:7: error: undefined identifier 'HFONT'
HFONT hFont, hOldFont;
^
C:UsersplannDownloadstestMessageAppsrcapp.d:17:14: error: undefined identifier 'HFONT'
HFONT hFont, hOldFont;
^
C:UsersplannDownloadstestMessageAppsrcapp.d:20:5: error: undefined identifier 'HWND'
int WindowProcedure (HWND, UINT, WPARAM, LPARAM );
^
C:UsersplannDownloadstestMessageAppsrcapp.d:20:5: error: undefined identifier 'UINT'
int WindowProcedure (HWND, UINT, WPARAM, LPARAM );
^
C:UsersplannDownloadstestMessageAppsrcapp.d:20:5: error: undefined identifier 'WPARAM'
int WindowProcedure (HWND, UINT, WPARAM, LPARAM );
^
C:UsersplannDownloadstestMessageAppsrcapp.d:20:5: error: undefined identifier 'LPARAM'
int WindowProcedure (HWND, UINT, WPARAM, LPARAM );
^
C:UsersplannDownloadstestMessageAppsrcapp.d:23:5: error: undefined identifier 'HINSTANCE'
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
^
C:UsersplannDownloadstestMessageAppsrcapp.d:23:5: error: undefined identifier 'HINSTANCE'
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
^
C:UsersplannDownloadstestMessageAppsrcapp.d:23:5: error: undefined identifier 'LPSTR'
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
^
C:UsersplannDownloadstestMessageAppsrcapp.d:44:5: error: undefined identifier 'HINSTANCE'
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
^
C:UsersplannDownloadstestMessageAppsrcapp.d:44:5: error: undefined identifier 'HINSTANCE'
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
^
C:UsersplannDownloadstestMessageAppsrcapp.d:44:5: error: undefined identifier 'LPSTR'
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
^
C:UsersplannDownloadstestMessageAppsrcapp.d:99:5: error: undefined identifier 'HWND'
int WindowProcedure(HWND hwnd, UINT AEX, WPARAM wParam, LPARAM lParam) nothrow
^
C:UsersplannDownloadstestMessageAppsrcapp.d:99:5: error: undefined identifier 'UINT'
int WindowProcedure(HWND hwnd, UINT AEX, WPARAM wParam, LPARAM lParam) nothrow
^
C:UsersplannDownloadstestMessageAppsrcapp.d:99:5: error: undefined identifier 'WPARAM'
int WindowProcedure(HWND hwnd, UINT AEX, WPARAM wParam, LPARAM lParam) nothrow
^
C:UsersplannDownloadstestMessageAppsrcapp.d:99:5: error: undefined identifier 'LPARAM'
int WindowProcedure(HWND hwnd, UINT AEX, WPARAM wParam, LPARAM lParam) nothrow*

我们不能不看一看app.d.从错误来看,您似乎没有导入定义各种Windows特定类型的Windows模块。从以下两个典型的导入开始:

import core.runtime;
import core.sys.windows.windows;

我强烈建议您阅读以下指南:https://wiki.dlang.org/D_for_Win32

相关内容

  • 没有找到相关文章

最新更新