请教熟悉wxwindows的高手!!!

bddsp 2004-06-14 08:53:27
我在自己建立工程编译wxwindows时连接时有以下错误:
Error : L6218E: Undefined symbol wxFileExists__FRC8wxString (referred from window.o).
但在源文件找不到wxFileExists__FRC8wxString,其实是没有找到wxFileExists函数
在wx25。def映像文件中有记载:
;wxFileExists(const wxString&)
wxFileExists__FRC8wxString
;wxSetWorkingDirectory(const wxString&)
wxSetWorkingDirectory__FRC8wxString
;wxIsWild(const wxString&)
wxIsWild__FRC8wxString
;wxEndsWithPathSeparator(const char*)
wxEndsWithPathSeparator__FPCc
;wxCopyAbsolutePath(const wxString&)
wxCopyAbsolutePath__FRC8wxString
;wxGetWorkingDirectory(char*,int)
wxGetWorkingDirectory__FPci
;wxRenameFile(const wxString&,const wxString&)
wxRenameFile__FRC8wxStringT1

请问高手这是怎么回事???

...全文
181 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hewittlee 2004-08-06
  • 打赏
  • 举报
回复
up
kaphoon 2004-08-06
  • 打赏
  • 举报
回复
static const char sccsid[] = "%W% %G%";

#ifdef __GNUG__
#pragma implementation
#pragma interface
#endif

#include "wx.h"

// Define a new application type
class MyApp: public wxApp
{ public:
wxFrame *OnInit(void);
};

// Define a new frame type
class MyFrame: public wxFrame
{ public:
MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
void OnMenuCommand(int id);
};

// ID for the menu quit command
#define MINIMAL_QUIT 1

// This statement initializes the whole application and calls OnInit
MyApp myApp;

// A macro needed for some compilers (AIX) that need 'main' to be defined
// in the application itself.
IMPLEMENT_WXWIN_MAIN

// `Main program' equivalent, creating windows and returning main app frame
wxFrame *MyApp::OnInit(void)
{
// Create the main frame window
MyFrame *frame = new MyFrame(NULL, "Minimal wxWindows App", 50, 50, 400, 300);

// Give it an icon
#ifdef wx_msw
frame->SetIcon(new wxIcon("mondrian"));
#endif
#ifdef wx_x
frame->SetIcon(new wxIcon("aiai.xbm"));
#endif

// Make a menubar
wxMenu *file_menu = new wxMenu;

file_menu->Append(MINIMAL_QUIT, "Quit");
wxMenuBar *menu_bar = new wxMenuBar;
menu_bar->Append(file_menu, "File");
frame->SetMenuBar(menu_bar);

// Make a panel with a message
wxPanel *panel = new wxPanel(frame, 0, 0, 400, 400);

panel->SetLabelPosition(wxHORIZONTAL) ;
(void)new wxMessage(panel, "Hello, this is a minimal wxWindows program!", 0, 0);
// Show the frame
frame->Show(TRUE);

// Return the main frame window
return frame;
}

// My frame constructor
MyFrame::MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h):
wxFrame(frame, title, x, y, w, h)
{}

// Intercept menu commands
void MyFrame::OnMenuCommand(int id)
{
switch (id) {
case MINIMAL_QUIT:
delete this;
break;
}
}
用这个程序测试一下你的xwindows库,有没有安装正确
如果是正确的,那么我想只能看了你的代码后再得结论了
bddsp 2004-06-15
  • 打赏
  • 举报
回复
up

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧