From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Kachalov Anton To: mandrake-russian@altlinux.ru Subject: Re: [mdk-re] wxWindow - =?Windows-1251?B?7+7s7uPo8uUg7eD36O3g/vnl7A==?= =?Windows-1251?B?8w==?= Message-Id: <20020103183248.4a352b57.mouse@linux.ru.net> In-Reply-To: <3C343C32.3070808@rmts.donpac.ru> References: <3C343C32.3070808@rmts.donpac.ru> Organization: ALTLinux X-Mailer: Sylpheed version 0.6.6 (GTK+ 1.2.10; i586-alt-linux) Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit Sender: mandrake-russian-admin@altlinux.ru Errors-To: mandrake-russian-admin@altlinux.ru X-BeenThere: mandrake-russian@altlinux.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: mandrake-russian@altlinux.ru List-Help: List-Post: List-Subscribe: , List-Id: Linux-Mandrake RE / ALT Linux discussion list List-Unsubscribe: , List-Archive: Date: Thu Jan 3 18:26:20 2002 X-Original-Date: Thu, 3 Jan 2002 18:32:48 +0300 Archived-At: List-Archive: List-Post: On Thu, 03 Jan 2002 14:10:42 +0300 John wrote: > Здравствуйте! > > Создал файл hello.cpp, в него написал > > #include > > class HelloApp : public wxApp > { > virtual bool OnInit(); > }; > > bool HelloApp::OnInit() > { > wxMessageBox("Text","Caption",wxOK|wxICON_INFORMATION, NULL); > return true; > } > > При компиляции получаю следующее > > [john@john wx]$ g++ hello.cpp `wx-config --libs` `wx-config --cflags` -o > hello > /usr/lib/gcc-lib/i586-alt-linux/2.96/../../../crt1.o: In function `_start': > /usr/lib/gcc-lib/i586-alt-linux/2.96/../../../crt1.o(.text+0x18): > undefined reference to `main' > collect2: ld returned 1 exit status > > Что делать? > А где функция int main(...) ??? именно ее хотят. Rgds, Anton