简体   繁体   English

Windows上的wxWidgets + Cygwin

[英]wxWidgets + Cygwin on windows

I am trying to install wxWidgets on Windows. 我正在尝试在Windows上安装wxWidgets。

I unzipped wxWidgets and then followed this guide: http://wiki.wxwidgets.org/Adding_an_Environment_Variable_under_Windows 我解压缩了wxWidgets,然后按照以下指南操作: http : //wiki.wxwidgets.org/Adding_an_Environment_Variable_under_Windows

I copied their sample hello world source code and tried to compile it using g++ but it tells me wx/wx.h No such file... 我复制了他们的示例hello world源代码,并尝试使用g ++进行编译,但它告诉我wx/wx.h No such file...

I am new to C++. 我是C ++的新手。 Am I doing it right? 我做对了吗? I followed the guide exactly. 我完全遵循了指南。

PS: I use cygwin + notepad++ PS:我使用cygwin + notepad ++

With Cygwin you need to: 使用Cygwin,您需要:

  1. Build wxWidgets using configure and make , see the appropriate section of docs/msw/install.txt in your wxWidgets installation. 使用configuremake来构建wxWidgets,请参阅wxWidgets安装中的docs/msw/install.txt的相应部分。
  2. Optionally install it using make install . (可选)使用make install
  3. Use wx-config --cxxflags --libs when compiling your code, just as under Unix (because Cygwin is Unix). 就像在Unix下一样,在编译代码时使用wx-config --cxxflags --libs (因为Cygwin Unix)。

PS If you're new to C++ you're unlikely to find Cygwin the most newbie-friendly environment. PS:如果您不熟悉C ++,则不太可能找到Cygwin最适合新手的环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM