MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Bad A Billy
Oop Ack!
Reged: 12/27/07
Posts: 1076
Loc: Outland
Send PM


compile errors...
#325270 - 04/27/14 07:39 AM


Can compile .153 just fine. Usually I check out changes when something looks interesting. 1st time (a week or so ago) compiled fine again. Now this is what I get. Not exactly sure what I'm looking at here. Can someone explain what changed or I am doing wrong now?

Compiling src/osd/windows/windir.c...
In file included from src/osd/osdcore.h:23:0,
from src/osd/windows/strconv.h:12,
from src/osd/windows/main.c:16:
src/emu/delegate.h: In constructor 'delegate_mfp::delegate_mfp(_MemberFunctionType, _MemberFunctionClass*, _ReturnType*, _StaticFunctionType)':
src/emu/delegate.h:502:38: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive]
src/emu/delegate.h:502:38: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make: *** [obj/windows64/osd/windows/main.o] Error 1

It also does that for 2 other files when going to delegate.h
Thanks

EDIT:
Sorry about bumping this but hopefully someone can help me now before I go completely nuts. I have tried all the way from everything new on a different drive to individual file editing and it still ends up starting out like this. What am I missing?

Edited by Bad A Billy (05/18/14 05:15 AM)



Pessimist: Oh, this can't get any worse!
Optimist: Yes, it can!



Bad A Billy
Oop Ack!
Reged: 12/27/07
Posts: 1076
Loc: Outland
Send PM


bump - sorry, need help... new [Re: Bad A Billy]
#325991 - 05/18/14 05:18 AM





Pessimist: Oh, this can't get any worse!
Optimist: Yes, it can!



sz72
MAME Fan
Reged: 08/20/07
Posts: 78
Send PM


Re: bump - sorry, need help... new [Re: Bad A Billy]
#325994 - 05/18/14 12:43 PM


What is the content of line 502 in delegate.h ?
If it contains just a call to assert() like

assert(sizeof(mfp) == sizeof(*this));

try to comment that out

Edited by sz72 (05/18/14 12:46 PM)



Bad A Billy
Oop Ack!
Reged: 12/27/07
Posts: 1076
Loc: Outland
Send PM


Re: bump - sorry, need help... new [Re: sz72]
#326002 - 05/18/14 04:48 PM


I've tried that and it takes a lot of commenting things out and when it get to the actual drivers it really messes thing up. Looking for things that are there and aren't(I know that doesn't make sense)and such.

Well, if no one else had any problems to continue compiling after the 1st couple of commits then something HAD to have changed here. I'll restart on another pc with everything re-d/l and try that. The only things that have changed on this pc though are windoze updates so, probably 1 of those "only me" problems.

Unless someone has any other ideas?

Thanks



Pessimist: Oh, this can't get any worse!
Optimist: Yes, it can!



Anonymous
Unregistered
Send PM


Re: compile errors... new [Re: Bad A Billy]
#326005 - 05/18/14 05:20 PM


> Can compile .153 just fine. Usually I check out changes when something looks
> interesting. 1st time (a week or so ago) compiled fine again. Now this is what I get.
> Not exactly sure what I'm looking at here. Can someone explain what changed or I am
> doing wrong now?
>

Sounds like you're using the wrong compiler or you've made changes to the source to break it. The official compiler works fine with the latest source.

Edited by smf (05/18/14 05:20 PM)



sz72
MAME Fan
Reged: 08/20/07
Posts: 78
Send PM


Re: bump - sorry, need help... new [Re: Bad A Billy]
#326009 - 05/18/14 09:51 PM


> I've tried that and it takes a lot of commenting things out and when it get to the

I want you to comment only line 502 in file delegate.h and nothing else.

Or are you telling me that even without that line, if you re-compile everything you still get the same error ?

Edited by sz72 (05/18/14 09:52 PM)



Bad A Billy
Oop Ack!
Reged: 12/27/07
Posts: 1076
Loc: Outland
Send PM


Re: bump - sorry, need help... new [Re: sz72]
#326018 - 05/19/14 03:31 AM


This time I went ahead and d/l the latest commit and tried. Once again it gave that error. Fixed it and it went further and then I had to comment out 1 line from netlist.h. After that it actually compiled! Keep in mind that I overwrote everything but that doesn't mean all the files I changed before are new now so.... Now I'll see what works and what doesn't. At least it's a good start.

Thanks for the help, I really do appreciate it!



Pessimist: Oh, this can't get any worse!
Optimist: Yes, it can!



Jdurgi
Regular
Reged: 09/21/03
Posts: 1009
Loc: NEW England, CT
Send PM


Re: bump - sorry, need help... new [Re: Bad A Billy]
#326140 - 05/23/14 01:18 AM


> This time I went ahead and d/l the latest commit and tried. Once again it gave that
> error. Fixed it and it went further and then I had to comment out 1 line from
> netlist.h. After that it actually compiled! Keep in mind that I overwrote everything
> but that doesn't mean all the files I changed before are new now so.... Now I'll see
> what works and what doesn't. At least it's a good start.
>
> Thanks for the help, I really do appreciate it!

Well, not sure how extensive your experience is with the MAME source, but fiddling around to find out what works is the best way to learn. Been doing that myself for a few years now, and I can safely say that the experience has taught me that the MAMEdevs are incredible with the work they have done. I no longer say "oh, that must be simple to do." Frankly, I think that every person who uses MAME should be required to fiddle around with the source code before they are able to comment or complain about anything in the source.



--------------------------------------------------
I am just a worthless liar.
I am just an imbecile.
I will only complicate you.
Trust in me and fall as well.



Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 171 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1688