ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] wxWindow - помогите начинающему
@ 2002-01-03 14:05 John
  2002-01-03 18:21 ` Serge Skorokhodov
  2002-01-03 18:26 ` Kachalov Anton
  0 siblings, 2 replies; 4+ messages in thread
From: John @ 2002-01-03 14:05 UTC (permalink / raw)
  To: Mandrake

Здравствуйте!

Создал файл hello.cpp, в него написал

#include <wx/wx.h>

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

Что делать?

С уважением, Прокопьев Евгений





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-01-04  8:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-03 14:05 [mdk-re] wxWindow - помогите начинающему John
2002-01-03 18:21 ` Serge Skorokhodov
2002-01-04  8:15   ` John
2002-01-03 18:26 ` Kachalov Anton

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git