Home » U++ Library support » RichText,QTF,RTF... » Error while compiling on Windows Platform
Error while compiling on Windows Platform [message #35787] |
Wed, 21 March 2012 12:29 |
Shwetha
Messages: 39 Registered: August 2011
|
Member |
|
|
Hii,
I have programmed to generate the report and print it, followed the example as shown in reportgen prog. I could compile and get the desired out put on linux platform. same program i tried to execute on Windows and following error occurs.Could you please tell me how to solve the issue.
erpprint.cpp
In file included from C:\MyApps\ERPPrint\erpprint.cpp:1:0:
C:\MyApps\ERPPrint\/ERPPrint.h: In constructor 'ERPReportWindow::ERPReportWindow()':
C:\MyApps\ERPPrint\/ERPPrint.h:27:30: error: cannot call constructor 'ERPReportWindow::ReportWindow' directly
C:\MyApps\ERPPrint\/ERPPrint.h:27:30: error: for a function-style cast, remove the redundant '::ReportWindow'
ERPPrint: 1 file(s) built in (0:01.82), 1828 msecs / file, duration = 1843 msecs, parallelization 0%
There were errors. (0:01.90)
|
|
|
|
|
|
|
Re: Error while compiling on Windows Platform [message #35805 is a reply to message #35801] |
Thu, 22 March 2012 15:49 |
|
koldo
Messages: 3394 Registered: August 2008
|
Senior Veteran |
|
|
omari wrote on Thu, 22 March 2012 10:25 | Hello,
you make it work by removing the line :
ReportWindow::ReportWindow();
a derived class call its base constructor automatically.
|
Oh yes.
You wrote this:
class ERPReportWindow : public ReportWindow
{
public:
typedef ERPReportWindow CLASSNAME;
ERPReportWindow()
{
ReportWindow::ReportWindow(); // This line is redundant
};
};
Best regards
Iñaki
|
|
|
Goto Forum:
Current Time: Sat Sep 21 03:02:44 CEST 2024
Total time taken to generate the page: 0.08872 seconds
|