User forums > Help

Error!! please help

<< < (3/3)

TDragon:

--- Quote from: nicola on September 15, 2007, 05:35:20 pm ---When I changed line 196 in platform.h
...
renaming it causes fatal error:

--- End quote ---
Both of these are the wrong solutions to your errors.

To solve the first, ensure that "C:\wxWidgets-2.8.5\lib\gcc_dll\mswu" is in your project's include paths. (You'll notice that this directory contains "wx\setup.h".) This is most commonly done with a global variable named "wx", with the base path set to (in your case) "C:\wxWidgets-2.8.5", and then "$(#wx.lib)\gcc_dll\mswu" in your project's Compiler search directories.

To solve the second, change your wxWidgets library option ("Link libraries" in your project's linker settings) from "wxmsw28u" to "wxmsw28ud", or recompile wxWidgets with "BUILD=release".

As long as you select the correct options, the wxWidgets project wizard will handle all this for you. In your case, you currently have a wxWidgets DLL (SHARED=1), built as a monolithic library (MONOLITHIC=1), Unicode enabled (UNICODE=1). Additionally, the debug version of wxWidgets was built (BUILD=debug). To indicate that in the wizard, check the "Configure Advanced Options" button and select "Use __WXDEBUG__ and Debug wxWidgets lib"; however, you will never need to debug wxWidgets itself, so it's recommended that you rebuild it in release mode for a smaller and faster version.

Biplab:

--- Quote from: TDragon on September 15, 2007, 06:43:13 pm ---To indicate that in the wizard, check the "Configure Advanced Options" button and select "Use __WXDEBUG__ and Debug wxWidgets lib"; however, you will never need to debug wxWidgets itself, so it's recommended that you rebuild it in release mode for a smaller and faster version.

--- End quote ---

TDragon has given an excellent explanation for your problem. I want to add one more point to that. The statement quoted above can safely be applied for GCC. Don't try it with MSVC or any other compilers. :)

As TDragon has suggested, don't start with a Debug version of wxWidgets unless you're interested to debug wx. You may face some strange debugging messages while running your app.

nicola:
TDragon Thanks a lot!
now lets experiment with it ... thnx to all

Navigation

[0] Message Index

[*] Previous page

Go to full version