Page 1 of 1

Please help in Setting up vc++ 6.0 and wxwidgets

Posted: Mon May 26, 2008 11:45 am
by mohan
Hi All,
I am trying to create a wxwidgets projeect in vc++ fro more than two days.I couldnt set up the IDE fro compiling with wxwidgets.Please help me out to set up the IDE.

I am following the same steps in this link but in vain.
http://wiki.wxwidgets.org/MSVC_Setup_Guide

I am facing these kind of errors.
fatal error C1083: Cannot open include file: 'wx/wx.h': No such file or directory

or sometimes could not find assert.h etc. Please help me out to solve this problem.

Thanks in advance,
Mohan.

Posted: Tue May 27, 2008 5:57 am
by Lloyd
Were you successful in building wxWidgets?

Then what build it is?

The file inclusion error is shown when, file is not in the standard path. Add wxWidgets include (header file) path in your project's properties.

If you are not successful, Please give more info like what you did actually from the wx installation.

Posted: Tue May 27, 2008 8:32 am
by mohan
I will say the steps wat I did for my IDE set up.

1)I downloaded the wxwidgets and installed it.
2)I opened my vc++ ide and builded the wx.dsw workspace.
3)I builded classes according to the correct order and even created up the environment variable.
4)I went to Project->Settings and gave the values as given in the link.
5)when i compile the program it is giving this error "cannot find wx/wx.h."
Help me the steps to do in project->settings bcoz i think I am making mistakes in this step.

Posted: Tue May 27, 2008 9:40 am
by Lloyd
goto project settings -> C/C++ tab

slect preprocessor

Add your wxWidgets include path in the Additionnal include directories text control

Posted: Wed May 28, 2008 5:22 am
by mohan
Thank you Lloyd .It has solved my problem.

:( But i get now a new error.I am using wxwidgets 2.8.7 and vc++ 6.0.The error I got is

wxmsw28d_core.lib(app.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(statbr95.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(spinbutt.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(listctrl.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(listctrl.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(listctrl.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(dragimag.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(dragimag.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(dragimag.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(dragimag.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(uuid.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(uuid.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(uuid.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(uuid.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(dragimag.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(dragimag.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(dragimag.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(dragimag.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(dragimag.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw28d_core.lib(dragimag.obj) : error LNK2001: unresolved external symbol [email protected]
Debug/HeatExchanger.exe : fatal error LNK1120: 25 unresolved externals

Please help me to solve the problem..

Posted: Wed May 28, 2008 5:50 am
by mohan
I have found the cause of error.I addded three libraries.
winnmm.lib,rptcrt4.lib and comctl32.lib.:)

Thanks Lloyd for your help.

Thanks,
Mohan