Skip to main content



      Home
Home » Eclipse Projects » Papyrus for Real Time » Problem finishing the PingPong tutorial (Compilation errors in generated code.)
Re: Problem finishing the PingPong tutorial [message #1773584 is a reply to message #1773570] Fri, 29 September 2017 13:05 Go to previous messageGo to previous message
Eclipse UserFriend
I had actually not set up UMLRTS_ROOT. Reading the contents of the page you sent me I'd mistakenly thought I could jump straight to https://wiki.eclipse.org/Papyrus-RT/User_Guide/Compiling_and_running_Papyrus_for_Real_Time_applications#Building_your_applications_on_Windows_with_Cygwin

So, now I've correctly set up UMLRTS_ROOT. And here is g++:

$ g++ --version
g++ (GCC) 6.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

BUT

The problem still persists. I think that before I short-circuited the UMLRTS_ROOT problem with this hack: https://wiki.eclipse.org/index.php?title=Papyrus-RT%2FUser_Guide%2FCompiling_and_running_Papyrus_for_Real_Time_applications&type=revision&diff=419649&oldid=418551

So, I still have the same problem. Looking at the compiler messages, it just seems that the code generator generates the Pinger as abstract, even though it's not declared as such (see the attached model):

Pinger.cc:87:90: error: invalid new-expression of abstract class type 'Capsule_Pinger'


slot->capsule = new Capsule_Pinger( &Pinger, slot, borderPorts, internalPorts, false );

Pinger.hh:12:7: note: because the following virtual functions are pure within 'Capsule_Pinger':
class Capsule_Pinger : public UMLRTCapsule

umlrtcapsule.hh:39:18: note: virtual void UMLRTCapsule::initialize(const UMLRTMessage&)


virtual void initialize ( const UMLRTMessage & msg ) = 0;
^~~~~~~~~~
umlrtcapsule.hh:40:18: note: virtual void UMLRTCapsule::inject(const UMLRTMessage&)
virtual void inject ( const UMLRTMessage & msg ) = 0;

I'm attaching you the model and generated code, just in case I've done something wrong while following the tutorial.
  • Attachment: papyrusrt.zip
    (Size: 19.75KB, Downloaded 189 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Creating internal transition in UML-RT?
Next Topic:code generation time
Goto Forum:
  


Current Time: Wed Jun 11 21:45:00 EDT 2025

Powered by FUDForum. Page generated in 0.03620 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top