With: pragma Q_Signal (Emit_Find_Next, "emitFindNext()"); pragma Q_Signal (Emit_Line_Edit, "emitLineEdit()");
pragma Q_Slot (Find_Clicked, "findClicked()"); Not sure what else changed, but now I get: Roger$gprbuild -d -P/Ada\ Projects/Programming\ With\ Qt4\ Examples\ in\ Ada/Find\ Dialog/find_dialog_moc.gpr --config=/Ada_Source/config.cgpramoc -v find_dialog.ads ADT file find_dialog.adt successfully created. Signals: emitFindNext() => Emit_Find_Next emitLineEdit() => Emit_Line_Edit Slots: findClicked() => Find_Clicked Methods: Declared interfaces: Declared plugin: Properties: raised CONSTRAINT_ERROR : amoc-generator.adb:676 range check failed completed 1 out of 1 (100%)... gprbuild: *** compilation phase failed If I comment out the Q_Signal Pragmas, the amoc build completes: Roger$gprbuild -d -P/Ada\ Projects/Programming\ With\ Qt4\ Examples\ in\ Ada/Find\ Dialog/find_dialog_moc.gpr --config=/Ada_Source/config.cgpr amoc -v find_dialog.ads ADT file find_dialog.adt successfully created. Signals: Slots: findClicked() => Find_Clicked Methods: Declared interfaces: Declared plugin: Properties: completed 1 out of 1 (100%)... Previously: > From: Roger Mc Murtrie <[email protected]> > Date: 22 June 2010 2:52:04 PM AEST > To: Vadim Godunko <[email protected]> > Cc: [email protected] > Subject: Re: [qtada-users] Slot connect errors > > > On 20/06/2010, at 9:24 PM, Vadim Godunko wrote: > >> On 06/20/2010 01:13 PM, Roger Mc Murtrie wrote: >>> Vadim, >>> I'm having trouble regenerating the moc files. >>> I am using GPS and previously they seem to have been automatically >>> generated; I don't really understand how this is supposed to work! >>> Now I've tried to generate them with gprbuild from the command line but: >>> >>> Roger$gprbuild -Pfind_dialog_moc --config=../../config.cgpr >>> amoc -v find_dialog.ads >>> ADT file find_dialog.adt successfully created. >>> >>> raised CONSTRAINT_ERROR : amoc-analizer.adb:1536 range check failed >>> gprbuild: *** compilation phase failed >>> >> It looks like a bug in amoc, most probably type of parameter is not >> recognized correctly, but I am unable to say more without reproducer :-( > > This appears to be the bug mentioned by: > [qtada-users] [Amoc] Bug-report: > On 06/18/2010 07:15 PM, coopht at gmail.com wrote: >> When I've tried to process the following code with amoc: > >> I've got the following error: >> gprbuild -p >> using project file a.gpr >> amoc a.ads >> raised CONSTRAINT_ERROR : amoc-analizer.adb:1536 range check failed >> gprbuild: *** compilation phase failed >> You can find the code and gnat project file for it in attach. >> > Thank you for report, it is fixed in development version and will be > available in next QtAda release. > > If so, could you send me the fix mentioned for the development version? > Regards, > Roger > > _______________________________________________ qtada-users mailing list [email protected] http://box347.bluehost.com/mailman/listinfo/qtada-users_lists.qtada.com
