Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

CodeBlocks includes for wxWidgsts

(1/3) > >>

Uskok:
Hi forum,

I am using wxWidgets with changed setup.h under ...\lib\gcc_dll\mswu\wx
Changes are:

--- Code: ---#ifdef NDEBUG
#define wxDEBUG_LEVEL 0
#else
#define wxDEBUG_LEVEL 2
#endif

#   define wxUSE_GRAPHICS_CONTEXT 1

--- End code ---

and I have problem with compiling because the order of include directories are not corrected in the CB projects

Errors:
D:/Dev/wxWidgets-3.0.3/include/wx/event.h:399: undefined reference to `wxOnAssert(char const*, int, char const*, char const*, char const*)'
D:/Dev/wxWidgets-3.0.3/include/wx/event.h:399: undefined reference to `wxTrap()'

The include directories are defined as:
$(#WX30_64.include)
$(#WX30_64.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)

but it must be opposite, otherwise ...\wxWidgets-3.0.3\lib\gcc_dll\mswu\wx\setup.h is coming after ...\include\wx\msw\setup.h

In my opinion, the usage of the $(WX_CFG) is wrong. If I compare the logic as is done for the wx-config (windows version, WXCFG environment variable), the much flexible solution is to define
WX_CFG=gcc_dll  or completely without  WX_CFG and define library folder inside $(#WX30_64.lib)

For my project I have
$(#WX30_64.lib)\mswu
$(#WX30_64.include)

This allows multiple sets of library at the same time. I have something as:
...\lib\gcc481-x64_dll\mswu(d)
...\lib\gcc492-x64_dll\mswu(d)
...\lib\gcc510-x64_dll\mswu(d)
...\lib\vc_x64_dll\mswu(d)


Regards,

    Uskok




oBFusCATed:
What is the purpose of the topic?
Are you proposing that we must change the wx project template?

Uskok:

--- Quote from: oBFusCATed on January 11, 2018, 08:01:05 pm ---What is the purpose of the topic?
Are you proposing that we must change the wx project template?

--- End quote ---

No, the projects to generate CB have wrong include order.

stahta01:

--- Quote from: Uskok on January 11, 2018, 08:32:13 pm ---
--- Quote from: oBFusCATed on January 11, 2018, 08:01:05 pm ---What is the purpose of the topic?
Are you proposing that we must change the wx project template?

--- End quote ---

No, the projects to generate CB have wrong include order.

--- End quote ---

Is this the CB wxWidgets wizard you are talking about?
Or the CB plugin wizard?
Or something else?

I am once more trying to update my wxWidgets wizard changes and could try to fix this issue if it is in that CB wizard.

Tim S.

oBFusCATed:

--- Quote from: Uskok on January 11, 2018, 08:32:13 pm ---No, the projects to generate CB have wrong include order.

--- End quote ---
Can you please rephrase this sentence, because I don't understand its meaning?
Are you talking about the projects in svn which are used to build codeblocks on windows?

Navigation

[0] Message Index

[#] Next page

Go to full version