Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxDebugReport can't be used under MingW #2807

Open
wxtrac opened this issue Sep 19, 2005 · 10 comments
Open

wxDebugReport can't be used under MingW #2807

wxtrac opened this issue Sep 19, 2005 · 10 comments
Labels
build Any build issue (with or without CMake) low priority

Comments

@wxtrac
Copy link
Collaborator

wxtrac commented Sep 19, 2005

Issue migrated from trac ticket # 2807

component: build | priority: low | keywords: wxMSW

2005-09-19 12:15:13: heromyth created the issue


Compiler: MingW with GCC 3.4.4
wxWidgets : all
Build Setting: MONOLITHIC # 1 SHARED1
USE_QA # 1 BUILDrelease

When compiling samples\debugrpt, get these result:

gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.rdata$_ZTV13MyDebugReport[vtable f
or MyDebugReport]+0x10): undefined reference to
wxDebugReport::AddFile(wxString const&, wxString const&)' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.rdata$_ZTV13MyDebugReport[vtable f or MyDebugReport]+0x14): undefined reference to wxDebugReport::GetReportName()
const'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.rdata$_ZTV13MyDebugReport[vtable f
or MyDebugReport]+0x18): undefined reference to
wxDebugReportUpload::DoProcess( )' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN13MyDebugReportD1Ev[MyDebu gReport::~MyDebugReport()]+0x14): undefined reference to _imp___ZTV19wxDebugRep
ortUpload'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.text$_ZN13MyDebugReportD1Ev[MyDebu
gReport::~MyDebugReport()]+0x5d): undefined reference
to _imp___ZTV21wxDebugRep ortCompress' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN13MyDebugReportD1Ev[MyDebu gReport::~MyDebugReport()]+0x81): undefined reference to _imp___ZN13wxDebugRepo
rtD2Ev'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.text$_ZN13MyDebugReportD1Ev[MyDebu
gReport::~MyDebugReport()]+0x9d): undefined reference
to _imp___ZN13wxDebugRepo rtD2Ev' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN13MyDebugReportD0Ev[MyDebu gReport::~MyDebugReport()]+0x14): undefined reference to _imp___ZTV19wxDebugRep
ortUpload'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.text$_ZN13MyDebugReportD0Ev[MyDebu
gReport::~MyDebugReport()]+0x61): undefined reference
to _imp___ZTV21wxDebugRep ortCompress' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN13MyDebugReportD0Ev[MyDebu gReport::~MyDebugReport()]+0x85): undefined reference to _imp___ZN13wxDebugRepo
rtD2Ev'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.text$_ZN13MyDebugReportD0Ev[MyDebu
gReport::~MyDebugReport()]+0xa1): undefined reference
to _imp___ZN13wxDebugRepo rtD2Ev' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN5MyApp14GenerateReportEN13 wxDebugReport7ContextE[MyApp::GenerateReport (wxDebugReport::Context)]+0x143): un defined reference to _imp___ZN19wxDebugReportUploadC2ERK8wxStringS2
S2_S2'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.text$_ZN5MyApp14GenerateReportEN13
wxDebugReport7ContextE[MyApp::GenerateReport
(wxDebugReport::Context)]+0x1d8): un
defined reference to
_imp___ZN13wxDebugReport6AddAllENS_7ContextE' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN5MyApp14GenerateReportEN13 wxDebugReport7ContextE[MyApp::GenerateReport (wxDebugReport::Context)]+0x5d0): un defined reference to wxDebugReport::AddFile(wxString
const&, wxString const&)'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.text$_ZN5MyApp14GenerateReportEN13
wxDebugReport7ContextE[MyApp::GenerateReport
(wxDebugReport::Context)]+0x6a6): un
defined reference to wxDebugReport::AddFile(wxString const&, wxString const&)' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN5MyApp14GenerateReportEN13 wxDebugReport7ContextE[MyApp::GenerateReport (wxDebugReport::Context)]+0x6ee): un defined reference to _imp___ZTV23wxDebugReportPreviewStd'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.text$_ZN5MyApp14GenerateReportEN13
wxDebugReport7ContextE[MyApp::GenerateReport
(wxDebugReport::Context)]+0x717): un
defined reference to wxDebugReportPreviewStd::Show (wxDebugReport&) const' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN5MyApp14GenerateReportEN13 wxDebugReport7ContextE[MyApp::GenerateReport (wxDebugReport::Context)]+0x736): un defined reference to _imp___ZN13wxDebugReport7ProcessEv'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.text$_ZN5MyApp14GenerateReportEN13
wxDebugReport7ContextE[MyApp::GenerateReport
(wxDebugReport::Context)]+0x800): un
defined reference to
_imp___ZTV19wxDebugReportUpload' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN5MyApp14GenerateReportEN13 wxDebugReport7ContextE[MyApp::GenerateReport (wxDebugReport::Context)]+0x865): un defined reference to _imp___ZTV21wxDebugReportCompress'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.text$_ZN5MyApp14GenerateReportEN13
wxDebugReport7ContextE[MyApp::GenerateReport
(wxDebugReport::Context)]+0x8a1): un
defined reference to _imp___ZN13wxDebugReportD2Ev' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN5MyApp14GenerateReportEN13 wxDebugReport7ContextE[MyApp::GenerateReport (wxDebugReport::Context)]+0xa07): un defined reference to _imp___ZTV19wxDebugReportUpload'
gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp:
(.text$_ZN5MyApp14GenerateReportEN13
wxDebugReport7ContextE[MyApp::GenerateReport
(wxDebugReport::Context)]+0xa6f): un
defined reference to
_imp___ZTV21wxDebugReportCompress' gcc_mswdll\debugrpt_debugrpt.o:debugrpt.cpp: (.text$_ZN5MyApp14GenerateReportEN13 wxDebugReport7ContextE[MyApp::GenerateReport (wxDebugReport::Context)]+0xa97): un defined reference to _imp___ZN13wxDebugReportD2Ev'
collect2: ld returned 1 exit status
make-mingw: *** [gcc_mswdll\debugrpt.exe] Error 1

=========================================

Change the settings:

MONOLITHIC # 1 SHARED1 USE_QA # 1 BUILD release

to these:

MONOLITHIC # 0 SHARED1 USE_QA # 1 BUILD release

and compile wxwidgets and samples\debugrpt again, it
seems no problem.

Of couse, the wxHandleFatalExceptions() seem not
woking with MingW either. So I delete it when I compile
samples\debugrpt.

@wxtrac
Copy link
Collaborator Author

wxtrac commented May 24, 2008

2008-05-24 02:41:00: @wojdyr changed component from ** to build

@wxtrac
Copy link
Collaborator Author

wxtrac commented Jan 22, 2012

2012-01-22 10:40:50: @oneeyeman1 commented


This probably should've been fixed a long time ago.

@wxtrac
Copy link
Collaborator Author

wxtrac commented Jan 22, 2012

2012-01-22 14:15:30: @vadz commented


I don't understand the last comment but I'm not sure if it was fixed. Have you tried building with MONOLITHIC=1 to test it?

Anyhow, this is not very important considering that wxDebugReport is pretty useless without wxUSE_STACKWALKER and wxUSE_CRASHREPORT both of which are unavailable with MinGW.

2012-01-22 14:15:30: @vadz changed priority from normal to low

@wxtrac
Copy link
Collaborator Author

wxtrac commented Jan 31, 2012

2012-01-31 00:33:12: @oneeyeman1 commented


Replying to [comment:3 vadz]:

Anyhow, this is not very important considering that wxDebugReport is pretty useless without wxUSE_STACKWALKER and wxUSE_CRASHREPORT both of which are unavailable with MinGW.

Vadim,
Are you saying you can't use wxDebugReport at all or it's possible but it won't give you much?

@wxtrac
Copy link
Collaborator Author

wxtrac commented Jan 31, 2012

2012-01-31 01:40:48: @vadz commented


It's (probably -- never tried it myself) possible but it's not useful.

@wxtrac
Copy link
Collaborator Author

wxtrac commented Jan 31, 2012

2012-01-31 01:56:42: arturbac (ArturB) commented


Hello last week I send 2 emails to list that I ported with succes a copy of wxStackWalker for mingw64 and mingw, as before wxStackWalker for msvc64

Im still banned on list.
No one responded my question if You are interested in enhancing wxStackWalker in Your source (becouse i work on local modification of it a template instead of polimorphism)

@wxtrac
Copy link
Collaborator Author

wxtrac commented Jan 31, 2012

2012-01-31 02:12:31: @oneeyeman1 commented


Can you make a patch and attach it to this ticket?
The patch should be made against the SVN TRUNK and you need to read the article about patches if you never done this before.

This way it will be included in the next release of wxWidgets and other people will benefit from it.

@wxtrac
Copy link
Collaborator Author

wxtrac commented Jan 31, 2012

2012-01-31 02:33:06: arturbac (ArturB) commented


will You unban me from list ?

@wxtrac
Copy link
Collaborator Author

wxtrac commented Jan 31, 2012

2012-01-31 03:38:36: @RobinD42 commented


Replying to [comment:8 arturbac]:

will You unban me from list ?

Your messages were flagged as possible spam by Groups and were waiting for moderation. Unfortunately the notifications of waiting messages are sometimes also marked as spam by our own local spam filters (for the same reasons presumably) and so we don't see them and so the messages wait for a while.

@wxtrac
Copy link
Collaborator Author

wxtrac commented Feb 7, 2012

2012-02-07 08:46:37: @oneeyeman1 commented


Replying to [comment:8 arturbac]:

will You unban me from list ?

@artubac,
Is it still you plan to submit a patch for this feature?
If so and you will work on bakefile site, please let us know, so that this ticket can be closed.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Any build issue (with or without CMake) low priority
Projects
None yet
Development

No branches or pull requests

1 participant