Please help in Setting up vc++ 6.0 and wxwidgets Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
mohan
Experienced Solver
Experienced Solver
Posts: 61
Joined: Wed May 07, 2008 9:55 am

Please help in Setting up vc++ 6.0 and wxwidgets

Post by mohan » Mon May 26, 2008 11:45 am

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.

Lloyd
Super wx Problem Solver
Super wx Problem Solver
Posts: 350
Joined: Wed May 03, 2006 2:36 pm
Location: India
Contact:

Post by Lloyd » Tue May 27, 2008 5:57 am

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.

mohan
Experienced Solver
Experienced Solver
Posts: 61
Joined: Wed May 07, 2008 9:55 am

Post by mohan » Tue May 27, 2008 8:32 am

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.

Lloyd
Super wx Problem Solver
Super wx Problem Solver
Posts: 350
Joined: Wed May 03, 2006 2:36 pm
Location: India
Contact:

Post by Lloyd » Tue May 27, 2008 9:40 am

goto project settings -> C/C++ tab

slect preprocessor

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

mohan
Experienced Solver
Experienced Solver
Posts: 61
Joined: Wed May 07, 2008 9:55 am

Post by mohan » Wed May 28, 2008 5:22 am

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..

mohan
Experienced Solver
Experienced Solver
Posts: 61
Joined: Wed May 07, 2008 9:55 am

Post by mohan » Wed May 28, 2008 5:50 am

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

Post Reply