Talk:Installing WxWin MinGW

From WxWiki

Jump to: navigation, search

[edit] Header files

Shouldn't something be put in here explaining how to get WxWidgets header files to be recognized by the MinGW compiler? In my experience, this isn't automatic, nor is it intuitive. I mean, after doing the stuff this article says, trying such as the following

#include <wx/string.h>

int main(int argc, char **argv)
{
    wxPuts(wxT("A wxWidgets console application"));
    return 0;
}

still produces such as the following result (I'm including the command-line arguments I used, too):

>g++ -pedantic -Os test3.cpp -o test3
test3.cpp:1:23: wx/string.h: No such file or directory
test3.cpp: In function `int main(int, char**)':
test3.cpp:5: error: `wxT' was not declared in this scope
test3.cpp:5: error: `wxPuts' was not declared in this scope
>Exit code: 1

Maybe some discourse on command-line arguments with MinGW would be helpful, as well.

72.8.96.13 23:43, 18 January 2008 (PST)

Personal tools