User forums > Help

wxWidgets 2.4.2

<< < (2/2)

rickg22:
IMPORTANT!

If you get an error when doing the mingw32-make (something about a "process" that could not be started), you could install the MSYS package provided by MINGW:
http://www.mingw.org/download.shtml#hdr2. The file (at the time of this post) is MSYS-1.0.10.exe. It's on the file list.

The current installation will provide you with a shortcut that opens a MSYS window. This is a "virtual *nix" window. From there I could compile the package perfectly.

Here are the "inside msys" instructions
(provided you installed wxwidgets in c:\tmp) :


--- Code: ---cd /c/tmp/wxWidgets-2.4.2/src/msw
make -f makefile.g95 WXMAKINGDLL=1 FINAL=1 UNICODE=0
--- End code ---


That's it.

Regarding a missing setup.h:

If you get a setup.h missing when you try to compile your wxWidgets project, it's hidden in include/wx/msw. The file should be c:\tmp\wxWidgets-2.4.2\include\wx\msw\setup.h. Copy it into your MINGW include\wx directory. For some reason my make didn't do it.

After that I got no compile problems at all :)

And I got my "Hello,World" running! :)

LoneGuard:
I followed the steps above and compiled wxWidgets 2.4.2 successfully. I copied include and lib files accordingly. Then I created a new wxWidgets project with the C::B wizzard. I haven't changed anything yet  :wink:. When I try to build it, the compiler pass is ok, but the linker reports:


--- Code: ---D:\Programme\Programming\MinGW\lib/libmingw32.a(main.o)(.text+0x97):main.c: undefined reference to `WinMain@16'
--- End code ---


As there are several info lines telling me that wxWidgets symbols were resolved, like


--- Code: ---Info: resolving _wxTheApp by linking to __imp__wxTheApp (auto-import)
--- End code ---


I assume that the linker found the wx library. But what is the problem with the WinMain@16 symbol?

mandrav:
If you 've followed the above instructions, you have created a wxWidgets DLL. In the new project wizard you should have selected this (it's the option "Using wxWidgets DLL").
Try adding WXUSINGDLL in "Project Build options->Compiler options->Compiler definitions".

Yiannis.

Navigation

[0] Message Index

[*] Previous page

Go to full version