|
Register or have you forgotten your password?
|
|
|
| Amiga Programming and Development This is the news feed forum for all Amiga programming and development news items and announcements. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#31 | |||||||||||
|
Cult Member
![]()
|
Quote:
![]() Quote:
But that's why I invite criticism, sometimes that's the best way to learn.Quote:
__________________
Ed. |
|||||||||||
|
|
|
|
|
#32 | ||||||||||||
|
Beginner
![]()
Join Date: Oct 2006
Posts: 31
|
Quote:
![]() Currently, I am a bit overworked (working from dawn till dusk), hence I don't find much spare time, and more important, I am not in the mood to do any kind of programming job. I am too tired for this. Quote:
Quote:
![]() Quote:
![]() BTW. It's a static library, right? Well, a static library is just a collection of object files, under OS3 and a compliant compiler (not g++ !!!) you can use the "join" command to combine those object files as one static library. Regards |
||||||||||||
|
|
|
|
|
#33 | ||||||||
|
Beginner
![]()
Join Date: Oct 2006
Posts: 31
|
I only want to inform that I've downloaded Mui++ (MorphOS version, because it is newer) and after applying the required modifications for OS3 I tried to compile. Hmm, there are plenty of errors when compiling using g++ 3.4.0. I don't think that I am able to fix these errors without touching my system header files, but that is one of the things I don't want to do, at least not as a lasting solution. I have to think about a temporary workaround...
Besides that, I haven't taken a look at BlackJack3 till now, due to lack of time. Regards |
||||||||
|
|
|
|
|
#34 | ||||||||
|
Cult Member
![]()
|
No rush on either. My priorities just changed, so I'm not focused on either of these for the moment. I'll get back to them later.
The errors you uncovered, do they look like the errors I found in this thread? That's where I am with MUI++ and they look like they might just be something you might understand.
__________________
Ed. |
||||||||
|
|
|
|
|
#35 | |||||||||||
|
Beginner
![]()
Join Date: Oct 2006
Posts: 31
|
Quote:
![]() Quote:
Quote:
![]() Anyway, the main issues I have, as far as I am able to tell - because of my limited C++ skills, is that unnamed structures in C cause no problems at all, in contrast to C++, where the compiler doesn't know how to treat it properly. Example. While something like this: typedef struct { whatsoever } *identifier; is allowed in C, it must be converted for C++ into: typedef struct STRUCTURE_NAME { whatsoever } *identifier; Because Commodore Amiga used this type of "unnamed structure declarations" especially for Intuition include files (NDK 3.9 installed here), I would have to examine these files and modify them accordingly. Yet, after more investigations, I think I can change these include files and add the STRUCTURE_NAME for these structures in question without breaking compatibility for C compilers. Next issues I am faced with is that the proto include files are not well suited for C++. Passing the pointer to TagItems where a variable argument list is expected without denoting it correctly for C++ in the corresponding proto include file must result in errors... Hence these files must be altered, too. In short, I think Mui++ (the MorphOS modified version I am trying to compile) should work once these system header files were changed accordingly. Regards |
|||||||||||
|
|
|
|
|
#36 | ||||||||
|
Beginner
![]()
Join Date: Oct 2006
Posts: 31
|
Merry Christmas to all who are celebrating it, for all others, enjoy life as it.
I've uploaded the modified source codes of Mui++. Please, before you try to compile, locate this, typedef struct { ULONG MethodID; /* method-specific data ... */ } *Msg; and change the typedef to: typedef struct _Msg { in intuition/classusr.h This is essential for C++. I have only tried to compile it (using gcc 3.3.0 and 3.4.0), I did not build something based on it. Hence errors were not fixed, if any exist. Regards |
||||||||
|
|
|
|
|
#37 | ||||||||
|
Cult Member
![]()
|
Let me know what you get figured out... unfortunately, my other distractions are taking up my time, like having to fix some broken pull-down menus on a website I maintain, so I haven't had a chance to revisit this of late.
__________________
Ed. |
||||||||
|
|
|
|
|
#38 | ||||||||||
|
Beginner
![]()
Join Date: Oct 2006
Posts: 31
|
Quote:
In "intuition/classusr.h" I changed, typedef struct { to typedef struct _Msg { In "utility/tagitem.h" and "clib/alib_protos.h" the obligatory statement <#ifdef __cplusplus [] extern "C" {> was missing again. The changes I've applied to the source code are minor - the issues I faced probably are due to the compiler initially used. I guess that it was g++ of version 2.9.x. For 3.3.0 and 3.4.0 the preprocessor doesn't accept anymore "::" within a macro definition. Hence I didn't use this macro but wrote it out in full (copy and paste orgy). Besides, I am not a fan of macros anyway, at least, if source codes should not be bound to one compiler only. If I am right, any version of g++ 3.x is more strict than any previous version, so I had to cast some parameters before they were accepted. I then changed one m68k-style VARARG function to a linear memory array. Okay, the hook function (dispatcher) had to be rewritten, because g++ doesn't accept parameters in specified processor registers, but that was it in the end. Quote:
![]() Hopefully our situation will change in the future, although I have my doubts... Besides, can you make the latest version of Black Jack available, so I can have a look at it, once I find some time? If I recall correctly, you wrote that you have issues with the latest version, but not with the version I did download? I ask because I have to work at the weekend anyway and I need something to relax, i.e. which distracts me from the boring work. ![]() All the best for the upcoming new year, Joerg |
||||||||||
|
|
|
|
|
#39 | |||||||||
|
Cult Member
![]()
|
Quote:
It's all dependent on my job, my aging father, family, my involvement with the 401st, friends, etc... I actually would like to find some kind of framework that is C++ oriented, which is why I've been investigating these. When I first learned C++, I created a object orient Blackjack framework to demonstrate I understood the concepts of OOD. I'd like an OO GUI to take that learning a step further, which is why I've been looking at these frameworks. I could just use Java or C#, but what fun is that? Unfortunately, as you seen, the Amiga lacks these and I've found trying to learn MUI, or Reaction or whatever else to be quite frustrating. Lack of a good knowledge base, documentation, etc... that mixed with the lack of time and the need to continue learning job related things (Unit testing, SOA, etc...) have made it extremely difficult to get anywhere.I actually appreciate you taking an interest in this and if I can help you in anyway let me know. As to my latest version of the game, contact me privately with your email address and I'll send you a zipped version. The remaining issue was a memory leak problem that I couldn't nail down, especially with the tools I have available. There was an issue with the IDCMP flags getting out of sync with the games basic functions but I hope I fixed it. As it was a random thing, so I'm still not 100% sure. And a very Happy New Year to you too.
__________________
Ed. |
|||||||||
|
|
|