Previous Thread
Next Thread
Print Thread
Page 2 of 2 1 2
Re: BletchMAME 1.0 has been released [Re: Bletch] #115935 09/17/19 01:27 PM
Joined: Mar 2001
Posts: 16,335
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,335
Ok, I'll pull latest and give it another shot.

Re: BletchMAME 1.0 has been released [Re: R. Belmont] #115936 09/17/19 02:05 PM
Joined: Nov 1999
Posts: 657
B
Bletch Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Nov 1999
Posts: 657
Googling around further, it sounds like if wxUSE_STD_STRING is off, then wxString doesn't derive from std::basic_string at all. I'm pretty dependent on that, and if that is indeed the case I suspect you may have bigger problems.

Re: BletchMAME 1.0 has been released [Re: Bletch] #116019 09/27/19 02:59 PM
Joined: Mar 2001
Posts: 16,335
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,335
Would it be possible to have them be std::basic_strings in BletchMAME and convert when passing to/from wx? Otherwise you might as well have written it in MFC as far as portability goes.

Re: BletchMAME 1.0 has been released [Re: Bletch] #116022 09/27/19 05:38 PM
Joined: Nov 1999
Posts: 657
B
Bletch Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Nov 1999
Posts: 657
I suppose it would be possible, but it would definitely be biggish surgery. The find and replace would be straight forward, but would then need to be followed up with explicit conversions between std::string (or a std::basic_string derivative) any time something comes in or out of wxWidgets.

I've got a potentially naive question - is it really that difficult to compile wxWidgets with wxUSE_STD_STRING=1 on Mac? Searching around I don't see anything explicitly saying that you can't.

On an amusing note, the last search result for wxUSE_STD_STRING on Google is this thread.

Re: BletchMAME 1.0 has been released [Re: Bletch] #116023 09/28/19 12:50 AM
Joined: Mar 2001
Posts: 16,335
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,335
Plot twist: wxUSE_STD_STRING *is* defined on the Mac and Linux, the reference to it not being defined was from wx 2.x. But yet the "bad hash" error and the lack of cbegin()/cend() still happens.

Re: BletchMAME 1.0 has been released [Re: Bletch] #116026 09/28/19 10:57 AM
Joined: Nov 1999
Posts: 657
B
Bletch Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Nov 1999
Posts: 657
That is extremely strange.

I'm assuming that when you say it is defined, you do not mean defined as in:
Code
#define wxUSE_STD_STRING 0

Re: BletchMAME 1.0 has been released [Re: Bletch] #116027 09/28/19 02:14 PM
Joined: Mar 2001
Posts: 16,335
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,335
Right. /usr/local/lib/wx/include/osx_cocoa-unicode-3.0/setup.h has the settings for the Mac build I'm using (from Brew) and it has #define wxUSE_STD_STRING 1.

Putting an #error inside the #ifdef wxUSE_STD_STRING block in string.h does trigger as well.

Last edited by R. Belmont; 09/28/19 02:23 PM.
Page 2 of 2 1 2

Who's Online Now
8 registered members (ted, Steve Bourg, R. Belmont, Stiletto, ICEknight, Robert Hildinger, 2 invisible), 126 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,693
Posts114,269
Members4,865
Most Online510
Aug 26th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3