All pastes #721101 Raw Edit

plains

public cpp v1 · immutable
#721101 ·published 2007-09-30 23:04 UTC
rendered paste body
/* Created by Anjuta version 1.2.4a *//*	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));  // <-this is where the error occurs ( error message below )  frame->Show(TRUE);  return TRUE;}/*here goes the  compilling messages...Compiling file: main.cc ...g++ `wx-config --cxxflags`    -Wall   -g  -c "main.cc" -o "main.o"main.cc: In member function ‘virtual bool MyApp::OnInit()’:main.cc:20: error: conversion from ‘const char [12]’ to ‘const wxString’ is ambiguous/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>Completed ... unsuccessfulTotal time taken: 4 secs*/