wxWidgets dialup example Topic is solved

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
Fabio
In need of some credit
In need of some credit
Posts: 5
Joined: Sat Dec 17, 2011 9:42 am

wxWidgets dialup example

Post by Fabio » Sat Dec 17, 2011 1:01 pm

Dear All,
I'm very newbie.
When I have compiled wxWidgets dialup example , I received those errors:

Code: Select all

Compilatore: Default GCC compiler
Building Makefile: "C:\Documents and Settings\All Users\Dev-Cpp\examples\wxWidgets\dialup\Makefile.win"
Esecuzione di  make...
mingw32-make.exe -f "Makefile.win" all 
"windres.exe" --input-format=rc -o Objects/MingW/dialup_private.res --include-dir "C:/PROGRA~1/Dev-Cpp/include/common" Objects/MingW/DIALUP~1.RC -O coff

g++.exe "Objects/MingW/nettest.o" Objects/MingW/dialup_private.res -o "Output/MingW/dialup.exe" -L"C:/Programmi/Dev-Cpp/Lib" -mwindows -lwxmsw28u -lwxmsw28u_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32   

Objects/MingW/nettest.o:nettest.cpp:(.text+0x112): undefined reference to `wxLogStatus(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x17f): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x295): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x2b2): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x339): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x35c): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x3e8): more undefined references to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)' follow
Objects/MingW/nettest.o:nettest.cpp:(.text+0xc6f): undefined reference to `wxLogError(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xccd): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xd7f): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xe95): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'

Objects/MingW/nettest.o:nettest.cpp:(.text+0xeb2): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xf39): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xf5c): more undefined references to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)' follow
Objects/MingW/nettest.o:nettest.cpp:(.text+0x17e4): undefined reference to `wxString::Printf(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1804): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x18fc): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1944): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x196a): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x198d): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1a12): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1a33): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1a9a): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1b40): undefined reference to `wxLogWarning(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1b79): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1baa): undefined reference to `wxStringBase::ConcatSelf(unsigned int, char const*, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1bc4): undefined reference to `wxStringBase::append(unsigned int, char)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1bd3): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1c94): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x11d): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x139): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x18bf): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x18d3): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1ae4): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1af1): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.rdata$_ZTV5MyApp[vtable for MyApp]+0x44): undefined reference to `wxApp::Initialize(int&, char**)'
collect2: ld returned 1 exit status

mingw32-make.exe: *** [Output/MingW/dialup.exe] Error 1

Esecuzione terminata
Compilation Failed. Make returned 2
Pls, could you help me??


Thanks.
Fabio

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Re: wxWidgets dialup example

Post by tbreina » Sat Dec 17, 2011 6:16 pm

In Project->Project Options->Parameters, what does it say in "Preprocessor Definitions".

-Tony
Everybody's got something to hide except for me and my monkey.

Fabio
In need of some credit
In need of some credit
Posts: 5
Joined: Sat Dec 17, 2011 9:42 am

Re: wxWidgets dialup example

Post by Fabio » Sat Dec 17, 2011 6:29 pm

Hi Tony,
in the "Preprocessor Definitions" there is written:

__WXMSW__
__GNUWIN32__
__WIN95__

thks

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Re: wxWidgets dialup example

Post by tbreina » Sat Dec 17, 2011 9:11 pm

Fabio wrote:Hi Tony,
in the "Preprocessor Definitions" there is written:

__WXMSW__
__GNUWIN32__
__WIN95__

thks
Change it to this:

Code: Select all

__WXMSW__
__GNUWIN32__
__WIN95__
NDEBUG
_UNICODE
wxNO_RTTI
Then do a Rebuild All.
Everybody's got something to hide except for me and my monkey.

Fabio
In need of some credit
In need of some credit
Posts: 5
Joined: Sat Dec 17, 2011 9:42 am

Re: wxWidgets dialup example

Post by Fabio » Sat Dec 17, 2011 10:34 pm

Tony,
I received these errors:

Code: Select all

Compiler: Default GCC compiler
Building Makefile: "C:\Documents and Settings\All Users\Dev-Cpp\examples\wxWidgets\dialup\Makefile.win"
Executing  make...
mingw32-make.exe -f "Makefile.win" all 
"windres.exe" --input-format=rc -o Objects/MingW/dialup_private.res --include-dir "C:/PROGRA~1/Dev-Cpp/include/common" Objects/MingW/DIALUP~1.RC -O coff

g++.exe "Objects/MingW/nettest.o" Objects/MingW/dialup_private.res -o "Output/MingW/dialup.exe" -L"C:/Programmi/Dev-Cpp/Lib" -mwindows -lwxmsw28u -lwxmsw28u_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32   

Objects/MingW/nettest.o:nettest.cpp:(.text+0x112): undefined reference to `wxLogStatus(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x17f): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x295): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x2b2): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x339): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x35c): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x3e8): more undefined references to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)' follow
Objects/MingW/nettest.o:nettest.cpp:(.text+0xc6f): undefined reference to `wxLogError(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xccd): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xd7f): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xe95): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'

Objects/MingW/nettest.o:nettest.cpp:(.text+0xeb2): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xf39): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xf5c): more undefined references to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)' follow
Objects/MingW/nettest.o:nettest.cpp:(.text+0x17e4): undefined reference to `wxString::Printf(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1804): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x18fc): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1944): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x196a): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x198d): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1a12): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1a33): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1a9a): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1b40): undefined reference to `wxLogWarning(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1b79): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1baa): undefined reference to `wxStringBase::ConcatSelf(unsigned int, char const*, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1bc4): undefined reference to `wxStringBase::append(unsigned int, char)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1bd3): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1c94): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x11d): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x139): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x18bf): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x18d3): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1ae4): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1af1): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.rdata$_ZTV5MyApp[vtable for MyApp]+0x44): undefined reference to `wxApp::Initialize(int&, char**)'
collect2: ld returned 1 exit status

mingw32-make.exe: *** [Output/MingW/dialup.exe] Error 1

Execution terminated
Compilation Failed. Make returned 2

Below there are the parameters
  • Compilers:
    -fno-exceptions
    -fno-pcc-struct-return
    -fstrict-aliasing
    -Wall
    -D__WXMSW__
    -D__GNUWIN32__
    -D__WIN95__

    C++ Compilers:

    -fno-exceptions
    -fno-pcc-struct-return
    -fstrict-aliasing
    -Wall
    -D__WXMSW__
    -D__GNUWIN32__
    -D__WIN95__

    Linker:
    -mwindows
    -l$(WXLIBNAME)
    -l$(WXLIBNAME)_gl
    -lwxtiff
    -lwxjpeg
    -lwxpng
    -lwxzlib
    -lwxregexu
    -lwxexpat
    -lkernel32
    -luser32
    -lgdi32
    -lcomdlg32
    -lwinspool
    -lwinmm
    -lshell32
    -lcomctl32
    -lole32
    -loleaut32
    -luuid
    -lrpcrt4
    -ladvapi32
    -lwsock32
    -lodbc32
    -lopengl32

    Preprocessor Definitions:
    __WXMSW__
    __GNUWIN32__
    __WIN95__
    NDEBUG
    _UNICODE
    wxNO_RTTI

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Re: wxWidgets dialup example

Post by tbreina » Sun Dec 18, 2011 5:04 pm

Did you do a Rebuild All?

-Tony
Everybody's got something to hide except for me and my monkey.

Fabio
In need of some credit
In need of some credit
Posts: 5
Joined: Sat Dec 17, 2011 9:42 am

Re: wxWidgets dialup example

Post by Fabio » Mon Dec 19, 2011 7:07 pm

Yes, but I received these errors:

Code: Select all

Compiler: Default GCC compiler
Building Makefile: "C:\Documents and Settings\All Users\Dev-Cpp\examples\wxWidgets\dialup\Makefile.win"
Executing  make...
mingw32-make.exe -f "Makefile.win" all 
"windres.exe" --input-format=rc -o Objects/MingW/dialup_private.res --include-dir "C:/PROGRA~1/Dev-Cpp/include/common" Objects/MingW/DIALUP~1.RC -O coff

g++.exe "Objects/MingW/nettest.o" Objects/MingW/dialup_private.res -o "Output/MingW/dialup.exe" -L"C:/Programmi/Dev-Cpp/Lib" -mwindows -lwxmsw28u -lwxmsw28u_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32   

Objects/MingW/nettest.o:nettest.cpp:(.text+0x112): undefined reference to `wxLogStatus(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x17f): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x295): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x2b2): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x339): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x35c): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x3e8): more undefined references to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)' follow
Objects/MingW/nettest.o:nettest.cpp:(.text+0xc6f): undefined reference to `wxLogError(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xccd): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xd7f): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xe95): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'

Objects/MingW/nettest.o:nettest.cpp:(.text+0xeb2): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xf39): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0xf5c): more undefined references to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)' follow
Objects/MingW/nettest.o:nettest.cpp:(.text+0x17e4): undefined reference to `wxString::Printf(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1804): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x18fc): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1944): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x196a): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x198d): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1a12): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1a33): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1a9a): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1b40): undefined reference to `wxLogWarning(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1b79): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1baa): undefined reference to `wxStringBase::ConcatSelf(unsigned int, char const*, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1bc4): undefined reference to `wxStringBase::append(unsigned int, char)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1bd3): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1c94): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x11d): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x139): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x18bf): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x18d3): undefined reference to `wxLogStatus(wxFrame*, char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1ae4): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.text+0x1af1): undefined reference to `wxLogMessage(char const*, ...)'
Objects/MingW/nettest.o:nettest.cpp:(.rdata$_ZTV5MyApp[vtable for MyApp]+0x44): undefined reference to `wxApp::Initialize(int&, char**)'
collect2: ld returned 1 exit status

mingw32-make.exe: *** [Output/MingW/dialup.exe] Error 1

Execution terminated
Compilation Failed. Make returned 2

Below there are the parameters
  • Compilers:
    -fno-exceptions
    -fno-pcc-struct-return
    -fstrict-aliasing
    -Wall
    -D__WXMSW__
    -D__GNUWIN32__
    -D__WIN95__

    C++ Compilers:

    -fno-exceptions
    -fno-pcc-struct-return
    -fstrict-aliasing
    -Wall
    -D__WXMSW__
    -D__GNUWIN32__
    -D__WIN95__

    Linker:
    -mwindows
    -l$(WXLIBNAME)
    -l$(WXLIBNAME)_gl
    -lwxtiff
    -lwxjpeg
    -lwxpng
    -lwxzlib
    -lwxregexu
    -lwxexpat
    -lkernel32
    -luser32
    -lgdi32
    -lcomdlg32
    -lwinspool
    -lwinmm
    -lshell32
    -lcomctl32
    -lole32
    -loleaut32
    -luuid
    -lrpcrt4
    -ladvapi32
    -lwsock32
    -lodbc32
    -lopengl32

    Preprocessor Definitions:
    __WXMSW__
    __GNUWIN32__
    __WIN95__
    NDEBUG
    _UNICODE
    wxNO_RTTI
This is very strange!! #-o The examples don't work,why???? :evil:

Thks,
Fabio

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Re: wxWidgets dialup example

Post by tbreina » Tue Dec 20, 2011 1:02 am

I don't think you are doing a Rebuild All (Ctrl+F11 or Execute->Rebuild All). Its output should look like this for the dialup example,

Code: Select all

Compiler: Default GCC compiler
Building Makefile: "C:\ProgramData\Dev-Cpp\examples\wxWidgets\dialup\Makefile.win"
Executing  make clean
rm -f "Objects/MingW/nettest.o" "Output/MingW/dialup.exe"

g++.exe -c nettest.cpp -o Objects/MingW/nettest.o -I"C:/Program Files/Dev-Cpp/lib/gcc/mingw32/3.4.5/include" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5/backward" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5/mingw32" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5" -I"C:/Program Files/Dev-Cpp/include" -I"C:/Program Files/Dev-Cpp/" -I"C:/Program Files/Dev-Cpp/include/common/wx/msw" -I"C:/Program Files/Dev-Cpp/include/common/wx/generic" -I"C:/Program Files/Dev-Cpp/include/common/wx/html" -I"C:/Program Files/Dev-Cpp/include/common/wx/protocol" -I"C:/Program Files/Dev-Cpp/include/common/wx/xml" -I"C:/Program Files/Dev-Cpp/include/common/wx/xrc" -I"C:/Program Files/Dev-Cpp/include/common/wx" -I"C:/Program Files/Dev-Cpp/include/common" -I"." -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -DNDEBUG -D_UNICODE -DwxNO_RTTI -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__   -fexpensive-optimizations -O3

g++.exe "Objects/MingW/nettest.o" -o "Output/MingW/dialup.exe" -L"C:/Program Files/Dev-Cpp/Lib" -mwindows -lwxmsw29u -lwxmsw29u_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32   

Execution terminated
Compilation successful
Compilation took 17 seconds to complete
Note how in mine it does a "make clean" and then the line:

Code: Select all

g++.exe -c nettest.cpp -o Objects/MingW/nettest.o -I"C:/Program Files/Dev-Cpp/lib/gcc/mingw32/3.4.5/include" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5/backward" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5/mingw32" -I"C:/Program Files/Dev-Cpp/include/c++/3.4.5" -I"C:/Program Files/Dev-Cpp/include" -I"C:/Program Files/Dev-Cpp/" -I"C:/Program Files/Dev-Cpp/include/common/wx/msw" -I"C:/Program Files/Dev-Cpp/include/common/wx/generic" -I"C:/Program Files/Dev-Cpp/include/common/wx/html" -I"C:/Program Files/Dev-Cpp/include/common/wx/protocol" -I"C:/Program Files/Dev-Cpp/include/common/wx/xml" -I"C:/Program Files/Dev-Cpp/include/common/wx/xrc" -I"C:/Program Files/Dev-Cpp/include/common/wx" -I"C:/Program Files/Dev-Cpp/include/common" -I"." -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -DNDEBUG -D_UNICODE -DwxNO_RTTI -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__   -fexpensive-optimizations -O3
Indicates that nettest.cpp is being re-compiled. You compiler output just shows that it is being re-linked but not re-compiled. A true "Rebuild All" would do both.

I've tried the example on my computer and if you add the _UNICODE and wxNO_RTTI parameters plus do a Rebuild All it will work successfully.

-Tony
Everybody's got something to hide except for me and my monkey.

Fabio
In need of some credit
In need of some credit
Posts: 5
Joined: Sat Dec 17, 2011 9:42 am

Re: wxWidgets dialup example

Post by Fabio » Wed Dec 21, 2011 7:43 pm

Perfect, now it works. :D

Many thanks,
Fabio

Post Reply