+ -
当前位置:首页 → 问答吧 → wxwidget2.9.2的问题

wxwidget2.9.2的问题

时间:2011-11-28

来源:互联网

我这边在fedora下面make install完了wxtarget。
也就是最后已经显示wxtarget install finish了
把wxtarget源代码下的include的wx文件夹复制到/usr/include/wx
然后写下如下的测试文件
C/C++ code

#include <wx/wx.h>
int main()
{
return 0;
]

g++ -o xx xx.cpp
提示wx/platfrom.h: wx/setup.h没有这个文件。
网上搜了下。这个文件貌似都是windows下的。在查看platfrom.h看到如下
C/C++ code

/*
   Include wx/setup.h for the Unix platform defines generated by configure and
   the library compilation options

   Note that it must be included before defining hardware symbols below as they
   could be already defined by configure
 */
#include "wx/setup.h"


locate setup.h之后显示在下载的源文件的msdev的头文件夹里面含有
我不知道怎么解决。

作者: cwh5635   发布时间: 2011-11-28

我觉得你用CodeBlocks+wxSmith来做比较好
使用wx不是这样玩的,需要加很多定义宏

作者: xunxun1982   发布时间: 2011-11-28