Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将linux wxWidgets应用程序移植到Windows+;雨衣_Windows_Linux_Macos_Wxwidgets_Porting - Fatal编程技术网

如何将linux wxWidgets应用程序移植到Windows+;雨衣

如何将linux wxWidgets应用程序移植到Windows+;雨衣,windows,linux,macos,wxwidgets,porting,Windows,Linux,Macos,Wxwidgets,Porting,我正在尝试将Linux(Ubuntu)中使用Code::Blocks构建的应用程序移植到Windows。 在configure.sh中有一个编译Windows和Mac版本的选项,但随后抛出错误,该选项不起作用 先走一步 您应该在#if defind(uuuwxmsw_uuu)中包含所有与平台相关的代码#endif指令(其他平台有自己的预处理器变量)。您可以查看wxWidgets的源代码,并了解如何解决该问题 //Common code #if defined(__WXMSW__) //

我正在尝试将Linux(Ubuntu)中使用Code::Blocks构建的应用程序移植到Windows。 在configure.sh中有一个编译Windows和Mac版本的选项,但随后抛出错误,该选项不起作用


先走一步

您应该在#if defind(uuuwxmsw_uuu)中包含所有与平台相关的代码#endif指令(其他平台有自己的预处理器变量)。您可以查看wxWidgets的源代码,并了解如何解决该问题

//Common code
#if defined(__WXMSW__)
    // Windows code goes here
#else if defined(__WXGTK__)
    // Linux code goes here
#else if defined(__WXMAC__)
    // Mac code goes here
#else
    // Code for other platforms
#endif
// Common code

你能粘贴错误消息吗?@Blender说没有找到
Windows.h。
我想那是因为我运行的是Linux系统。有一个问题。我没有任何独立于平台的代码,我只想让我所有的代码在其他平台上工作,比如Audacity。