User forums > Using Code::Blocks

Win32++ errors

<< < (2/2)

Alpha:
I do not know your level of skill with programming, but I found all of these wikibooks very useful for learning and polishing my C++.

If you do have the basics down (as learning C++ by starting with GUI programming is... difficult), wxWidgets is fairly straightforward to set up.

* Build wxWidgets
* Create a wxWidgets Code::Blocks project
If you want to use win32++, I checked and they include example Code::Blocks projects (*.cbp) which build perfectly fine.

--- Quote from: MattJ812 on October 10, 2011, 12:23:04 am ---EDIT - I tried creating the whole thing as a project and got to the linker settings, but there are no libraries to add for win32++

--- End quote ---
Looking at the provided blank project template in win32++ reveals that the code needs to be linked with the following libraries:

--- Code: ---comctl32
ole32
oleaut32
uuid
ws2_32

--- End code ---

MattJ812:

--- Quote from: stahta01 on October 10, 2011, 12:58:54 am ---I suggest turning on full compiler logging and posting your request for how to program on a programming support site. Note: Please use Google before posting!
--- End quote ---

Here's what I get with full command line...


--- Code: ---mingw32-g++.exe   -ID:\wxWidgets-2.9.1\include  -c D:\Things\Matts\My_Stuff\c++\win32\Untitled1.cpp -o D:\Things\Matts\My_Stuff\c++\win32\Untitled1.o
In file included from D:\wxWidgets-2.9.1\include/wx/chkconf.h:1122,
                 from D:\wxWidgets-2.9.1\include/wx/platform.h:711,
                 from D:\wxWidgets-2.9.1\include/wx/defs.h:26,
                 from D:\wxWidgets-2.9.1\include/wx/wx.h:15,
                 from D:\Things\Matts\My_Stuff\c++\win32\Untitled1.cpp:5:
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:20:10: error: #error "wxUSE_ACTIVEX must be defined."
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:28:9: error: #error "wxUSE_CRASHREPORT must be defined."
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:36:9: error: #error "wxUSE_DC_CACHEING must be defined"
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:60:10: error: #error "wxUSE_INICONF must be defined."
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:68:10: error: #error "wxUSE_OLE must be defined."
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:76:10: error: #error "wxUSE_OLE_AUTOMATION must be defined."
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:84:9: error: #error "wxUSE_TASKBARICON_BALLOONS must be defined."
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:92:10: error: #error "wxUSE_UNICODE_MSLU must be defined."
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:100:10: error: #error "wxUSE_UXTHEME must be defined."
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:377:13: error: #error "wxUSE_DATAOBJ requires wxUSE_OLE"
D:\wxWidgets-2.9.1\include/wx/msw/chkconf.h:397:13: error: #error "wxMediaCtl requires wxActiveXContainer"
In file included from D:\wxWidgets-2.9.1\include/wx/platform.h:711,
                 from D:\wxWidgets-2.9.1\include/wx/defs.h:26,
                 from D:\wxWidgets-2.9.1\include/wx/wx.h:15,
                 from D:\Things\Matts\My_Stuff\c++\win32\Untitled1.cpp:5:
D:\wxWidgets-2.9.1\include/wx/chkconf.h:1515:13: error: #error "wxRearrangeCtrl requires wxCheckListBox"
Process terminated with status 1 (0 minutes, 12 seconds)
12 errors, 0 warnings
--- End code ---

I have gone through many tutorials on C++, I started programming with GML so I am familiar with programming to an extent, I can write a simple c++ script that outputs in cmd but I have no use for that, I don't learn anything if I can't use any of it.  I have googled for what feels like forever.
 
www.cprogramming.com is the site I use.  All that being said I am still at a loss for how compilers and linkers work, so I guess this is the basis of my question.  I don't know what a library is so I don't know what I'm doing.


--- Quote from: Alpha on October 10, 2011, 12:58:54 am ---
If you do have the basics down (as learning C++ by starting with GUI programming is... difficult), wxWidgets is fairly straightforward to set up.
Build wxWidgets
Create a wxWidgets Code::Blocks project
--- End quote ---

I tried this out, I added to my enviroment variables and changed my cmd directory to build\msw but mingw32-make is unrecognised.  How could it? mignw32 make is in my mingw folder not in my wxwidgets directory.

--- Quote from: Alpha on October 10, 2011, 12:58:54 am ---If you want to use win32++, I checked and they include example Code::Blocks projects (*.cbp) which build perfectly fine.
Quote from: MattJ812 on Today at 12:23:04 am
EDIT - I tried creating the whole thing as a project and got to the linker settings, but there are no libraries to add for win32++
Looking at the provided blank project template in win32++ reveals that the code needs to be linked with the following libraries:
Code:
comctl32
ole32
oleaut32
uuid
ws2_32
--- End quote ---

What are these libraries and how do I tell codeblocks what they are?  I do not see them in any of the win32++ folders.

Sorry for all the questions, like I said I am familiar with programming to an extent I just still don't understand all this linking stuff.

Thanks.

Jenna:

--- Quote from: MattJ812 on October 10, 2011, 02:58:26 am ---I have gone through many tutorials on C++, I started programming with GML so I am familiar with programming to an extent, I can write a simple c++ script that outputs in cmd but I have no use for that, I don't learn anything if I can't use any of it.  I have googled for what feels like forever.
[...]
All that being said I am still at a loss for how compilers and linkers work, so I guess this is the basis of my question.  I don't know what a library is so I don't know what I'm doing.
[...]
Sorry for all the questions, like I said I am familiar with programming to an extent I just still don't understand all this linking stuff.

--- End quote ---

Please learn the basics of c++ programming.
Learn the difference between scripting and compiling/linking, learn what compiling does, what the linking stage does etc.
And if you really want to learn that with gui-programming and not with simple and understandable, but probably more or less useless, console-programs, it's up to you.

But you are definitely on the wrong site here.
We do not teach basic programming here.
If you ask such questions, you are violating our forum rules, the rules you have accepted with registering here.

If you know what you want to do, but don't know where to do it in C::B, feel free to ask here (after reading the manual, the wiki and searching the forum).

Topic locked !

Navigation

[0] Message Index

[*] Previous page

Go to full version