aMule Bug Tracker - aMule
View Issue Details
0001655aMuleMiscpublic2011-02-21 15:252011-03-09 10:19
gili 
sturedman 
normalminoralways
resolvedfixed 
2.2.6 
2.3.12.3.1 
10263
Linux
0001655: small compilation issue with gcc (g++) 4.5.0
Hello.

I built amule using g++ 4.5.0 on Open Suse 11.3 Linux.
The exact g++ version is: g++ (SUSE Linux) 4.5.0 20100604 [gcc-4_5-branch revision 160292]
I had to change the following line in order for the code to pass compilation:

I Changed src/utils/wxCas/src/wxcasframe.cpp:292 from:
    SetFont ( wxFont::wxFont ( 8, wxSWISS, wxNORMAL, wxBOLD ) );
to:
    SetFont ( wxFont( 8, wxSWISS, wxNORMAL, wxBOLD ) );
in order for the code to compile. Older gcc C++ compilers allowed calling a constructor by Class::Class, but this is not standard C++.

Regards,
Gili
No tags attached.
Issue History
2011-02-21 15:25giliNew Issue
2011-02-21 15:25giliOperating System => Linux
2011-03-09 10:19sturedmanFixed in Revision => 10263
2011-03-09 10:19sturedmanNote Added: 0003538
2011-03-09 10:19sturedmanAssigned To => sturedman
2011-03-09 10:19sturedmanStatusnew => resolved
2011-03-09 10:19sturedmanResolutionopen => fixed
2011-03-09 10:19sturedmanFixed in Version => 2.3.1
2011-03-09 10:19sturedmanTarget Version => 2.3.1

Notes
(0003538)
sturedman   
2011-03-09 10:19   
This has been fixed in SVN for a while. Thank you anyway for reporting!