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

wxWidgets project in Ubuntu Linux: wx-config error. Unknown flags.

<< < (6/6)

Biplab:
Oh.. Then the Wiki should be changed.

I'll try tomorrow afternoon and will post you result.  :)

Edit 1:
It returns a wxString. But there might be bug in the last line of following code (I'm not absolutely sure).

File: src/sdk/scripting/bindings/sc_io.cpp

--- Code: ---wxString ExecuteAndGetOutput(const wxString& command)
        {
            .... ......
            wxExecute(command, output, wxEXEC_NODISABLE);
            return GetStringFromArray(output);
        }

--- End code ---

GetStringFromArray requires 2 parameters whereas only 1 has been supplied.  :)

mandrav:

--- Quote ---It returns a wxString. But there might be bug in the last line of following code (I'm not absolutely sure).
--- End quote ---

Oh, sorry, seems I didn't remember well.
Anyway, the 2nd param of GetStringFromArray() is the delimiter to use, which defaults to ";" (IIRC).
I 'm going to have a look...

Biplab:
The function works now. (Found in Rev 3579)

Thanks for the fix.  :D

Navigation

[0] Message Index

[*] Previous page

Go to full version