Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-10

Error Linking Reportman to Lazarus

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter Vreman
to Thomas Edwin Santosa: I converted the testqtlin program from Report Manager…
you wrote 16 lines
Hi, I converted the testqtlin program from Report Manager project(http://reportman.sourceforge.net) to FreePascal. But I faced segmentation error when running that (it compiled nicely). The C version works fine. The source is below. I compiled it with fpc 1.0.10. Any idea? Thanks. Thomas Edwin Santosa program testqtlin; {$mode objfpc}{$H+} {$L libborqt-6.9-qt2.3.so} {$L libborunwind.so.6.0}

I guess the problem is that Borland has a different excpetion handling. When you want to use units made for Kylix you have to recompile all units using the fpc rtl and fcl.

Peter

Reply by email

Thomas Edwin Santosa

Hi,

I converted the testqtlin program from Report Manager project(http://reportman.sourceforge.net) to FreePascal. But I faced segmentation
error when running that (it compiled nicely). The C version works fine. The source is below. I compiled it with fpc 1.0.10. Any idea?

Thanks.
Thomas Edwin Santosa

program testqtlin;
{$mode objfpc}{$H+}
{$L libborqt-6.9-qt2.3.so}
{$L libborunwind.so.6.0}
uses
  rpreportmanapiqt;
var
  HReport: Integer;
const
  reportmanfile = 'sample4.rep';
begin
 writeln('Test for report manager');
 write('Will load :');
 writeln(reportmanfile);
 hreport := rp_open(reportmanfile);
 if hreport = 0 then
 begin
   write('Error loading: ');
   writeln(rp_lasterror);
 end
 else
 begin
  writeln(hreport);
  if (rp_preview(hreport,'Hello') = 0) then
  begin
   writeln(rp_lasterror());
  end;
//f (0==rp_print(hreport,"Test",0,1))
//{
// printf(rp_lasterror());
// printf("\n");
//}
  rp_close(hreport);
 end;
 if
(rp_previewremote('localhost',3060,'admin','','test','sample4.rep','Test')  0) then
 begin
  writeln(rp_lasterror());
 end;
 writeln;
end.

Reply by email