Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / _main

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. _main
#3099
Posted by: 2003-12-17 13:52:34
hi,
i'm new to wxwindows and the first prograzm i try, i get this linker error:
i'm using vc 6and wxwindows 2.4.2
--------------------Configuration: ex1 - Win32 Debug--------------------
Compiling...
ex1.cpp
Linking...
MSVCRTD.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
Debug/ex1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

ex1.exe - 2 error(s), 0 warning(s)


HELP!

mathai
Message2. Re: _main
#3169
Posted by: KaReL 2004-01-02 12:44:29
Try reading this tutorial:

http://wiki.wxwindows.org/wiki.pl?Hello_World

Especially this line:

Each wxWindow application needs an object derived from wxApp. Each application overrides the OnInit() method for initializing the application. You can, for example, create your main window here.



You did not create a wxApp-thingie ;)



Post Edited (01-02-04 12:44)
------------------------
Website: www.KaReLs0ft.be
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥477.00 ·
 
 
¥918.00 ·
 
 
¥370.00 ·
 
 
¥271.00 ·
 
 
¥995.00 ·
 
 
¥1,580.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0