/* Created by Anjuta version 1.2.4 */
/* Donc logiquement correct...*/
/* This file will not be overwritten */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <wx/wx.h>
class MyApp : public wxApp
{
public:
virtual bool OnInit();
};
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
{
wxFrame *frame = new wxFrame((wxFrame *)NULL, -1, "Hello World",
wxPoint(50, 50), wxSize(450, 340));
frame->Show(TRUE);
return TRUE;
}
et voila le résultat
[max@Jedi:~/Projects/testwx/src] $ g++ `wx-config --cppflags` `wx-config --libs` -o test main.cc
main.cc: In member function `virtual bool MyApp::OnInit()':
main.cc:22: erreur: conversion de « const char[12] » vers « const wxString » est ambiguë
/usr/include/wx-2.6/wx/string.h:643: note: candidats sont: wxString::wxString(wxChar, size_t) <près d'une concordance>
/usr/include/wx-2.6/wx/string.h:632: note: wxString::wxString(int) <près d'une concordance>