Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxwindows-2.4.2.devpak

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

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxwindows-2.4.2.devpak
#3648
Posted by: 2004-03-30 11:50:18
Hi all:

I'm running dev-c++ v4.9.8.7 on Windows XP. I uninstalled wxwindows v2.4.0 and installed v2.4.2. I then compiled a program and received the following compile errors (note, this program compiled ok under v2.4.0):

\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe C:\SoftDev\CppAndC\Projects\AudioDB\C
cannot find -lwxmswu

Compiler: Default compiler
Building Makefile: "C:\SoftDev\CppAndC\Projects\AudioDB\Makefile.win"
Executing  make...
make.exe -f "C:\SoftDev\CppAndC\Projects\AudioDB\Makefile.win" all
g++.exe AudioDB.o  -o "AudioDB.exe" -L"C:/Dev-Cpp/lib" -mwindows -lwxmswu -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid  

C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmswu

make.exe: *** [AudioDB.exe] Error 1

Execution terminated

I also received an access viloation error on packman.exe.
Any help to fix this would be appreciated, thanks.

Ray
Message2. Re: wxwindows-2.4.2.devpak
#3652
Posted by: upCASE 2004-03-30 16:23:34
Hi!
Have you tried with -lwxmsw? I'm not sure to which devpack you refer, but if it's mine it's not a unicode one.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: wxwindows-2.4.2.devpak
#3653
Posted by: upCASE 2004-03-30 17:18:42
Hi!
Just read your posting over at the Dev-C++ forum. :)
Have you tried recompiling the whole project to make the vtable warnings go away?
What version of gcc are you using?
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message4. Re: wxwindows-2.4.2.devpak
#3663
Posted by: 2004-03-31 03:09:23
Hi upCASE:

I'm using gcc v3.2. I just recompiled (via "Rebuild All" button) the entire project and got no compilation errors. Wow, that was easy! However, when I ran the devpak, at the end of the install, it asked me to click the "finish" button. I did that and got an access violation error on packman.exe???? Had to terminate packman.exe using the task manager.

The reason I upgraded from 2.4.0 to 2.4.2 is because I'm having trouble creating a grid on a panel. So I thought the "latest and greatest" version of wxwindows would fix this problem. It didn't. How do I create a grid on a panel?

Thanks for your help:-)

Ray
Message5. Re: wxwindows-2.4.2.devpak
#3674
Posted by: upCASE 2004-03-31 16:16:59
Hi!
Well, normally this shouldn't be an issue, because I don't think that wxGrid changed much from 2.4.0 to 2.4.2. With 2.5.1 there seem to be some changes though. wxSheet is on it's way (last time I checked the mailing list) and I guess that I'll be a bit easier to handle than wxGrid. But it may take till the release of 2.6.0...

Normaly you should be able to do something like

wxPanel* p = new wxPanel(this);
wxGrid* g = new wxGrid(p,-1,wxDefaultPosition, wxSize(200,200));
g->CreateGrid(5,5);

What seems to be the exact problem?
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message6. Re: wxwindows-2.4.2.devpak
#3679
Posted by: 2004-04-01 03:36:34
Hi upCASE:

Well, stupidly enough, I didn't bother to include the size and position when creating the grid object (duh!). Just experimenting at this point, so I thought a default value for size and position would be used for
"wxGrid* g = new wxGrid(p, -1)". Oh well, you learn something new every day.

Thanks for your help over the last couple of days.

Ray
Message7. Re: wxwindows-2.4.2.devpak
#3686
Posted by: upCASE 2004-04-01 16:35:29
Hi!
In fact if you don't use wxPoint and wxSize you are correct, the defaults wxSize(-1,-1) and wxPoint(-1,-1) will be taken. This leads to trouble when the size should be absolute. Using a sizer and let the wxGrid expand you can use the defaults.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2024-12-14  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0