User forums > General (but related to Code::Blocks)

Few Questions regarding wxWidgets project wizard of Code::Blocks?

(1/2) > >>

Biplab:
Hi,

I was modifying the wxWidgets project wizard in Code::Blocks. I was confused in some points.

1. Why does the wizard generates Debug Build Target as Console application? Is there any special purpose?

This is creating trouble with Borland Compiler as a particular compiler settings has to be turned on for proper linking.

2. Can we remove the option highlighted in following image?



I found the option to be a bit strange. E.g, if the option is checked then application (Linked with Debug build of wxWidgets) will have two build targets, (i) Debug Debug and (ii) Debug Release.

 :?

rjmyst3:

--- Quote from: biplab on December 21, 2006, 03:23:51 pm ---1. Why does the wizard generates Debug Build Target as Console application? Is there any special purpose?

--- End quote ---

In wxGTK, wxLogDebug dumps to the console. So it is really helpful to have a console start up even when you are making a GUI application.
I don't know if that was the intent with the wizard, but that is why I like it.

mandrav:

--- Quote from: rjmyst3 on December 21, 2006, 06:58:13 pm ---
--- Quote from: biplab on December 21, 2006, 03:23:51 pm ---1. Why does the wizard generates Debug Build Target as Console application? Is there any special purpose?

--- End quote ---

In wxGTK, wxLogDebug dumps to the console. So it is really helpful to have a console start up even when you are making a GUI application.
I don't know if that was the intent with the wizard, but that is why I like it.

--- End quote ---

Yes, that was exactly the intent. Only not specific for wxLogDebug but for simple printf()'s too ;).

Biplab:
Thanks for your replies.  :D

But I have asked another question in 2nd point. How to solve that? Means how can we justify the Release build of an application which itself is compiled and linked with Debug build of wxWidgets?  :?

I am novice regarding Linux. So I didn't know the purpose. I think there should be a better way to handle the Linux related problem.

rjmyst3:

--- Quote ---I am novice regarding Linux. So I didn't know the purpose. I think there should be a better way to handle the Linux related problem.
--- End quote ---

I don't think that your second question is specific to Linux.

I do think the option regarding the use of the debug libraries is confusing. I think the option should be removed, debug builds should link against debug libraries, release builds should link against release libraries.

Navigation

[0] Message Index

[#] Next page

Go to full version