Home » Community » U++ community news and announcements » TURTLE alpha status
Re: TURTLE alpha status [message #41894 is a reply to message #41891] |
Tue, 04 February 2014 09:47   |
Tom1
Messages: 1305 Registered: March 2007
|
Ultimate Contributor |
|
|
Hi Mirek,
I tried to compile the Reference/WebWord on Windows MSC9. Here are the issues and the solutions for them to make it work on Windows:
1. The following declaration is missing in WebWord.h but still referenced in ShowInfo:
2. The compiler goes nuts about this in Core/Gtypes.h:
#ifdef PLATFORM_WIN32
operator const RECT*() const { ASSERT(sizeof(*this) == sizeof(RECT)); return (RECT*)this; }
operator RECT*() { ASSERT(sizeof(*this) == sizeof(RECT)); return (RECT*)this; }
operator RECT&() { ASSERT(sizeof(*this) == sizeof(RECT)); return *(RECT*)this; }
operator RECT() const { RECT r; r.top = top; r.bottom = bottom;
r.left = left; r.right = right; return r; }
Rect_(const RECT& rc) { Set((T)rc.left, (T)rc.top, (T)rc.right, (T)rc.bottom); }
#endif
Commenting it out removes the problem, but is hardly the solution to use. (Should it be conditioned with "&& !PLATFORM_TURTLE" ?)
3. Finally when linking I get:
Linking...
FT_fontsys.lib(FT_fontsys.obj) : error LNK2005: "void __cdecl Upp::GetStdFontSys(class Upp::String &,int &)" (?GetStdFontSys@Upp@@YAXAAVString@1@AAH@Z) already defined in Draw.lib(FontWin32.obj)
FT_fontsys.lib(FT_fontsys.obj) : error LNK2005: "class Upp::String __cdecl Upp::GetFontDataSys(class Upp::Font)" (?GetFontDataSys@Upp@@YA?AVString@1@VFont@1@@Z) already defined in Draw.lib(FontWin32.obj)
FT_fontsys.lib(FT_fontsys.obj) : error LNK2005: "class Upp::Vector<struct Upp::FaceInfo> __cdecl Upp::GetAllFacesSys(void)" (?GetAllFacesSys@Upp@@YA?AV?$Vector@UFaceInfo@Upp@@@1@XZ) already defined in Draw.lib(FontWin32.obj)
FT_fontsys.lib(FT_fontsys.obj) : error LNK2005: "struct Upp::CommonFontInfo __cdecl Upp::GetFontInfoSys(class Upp::Font)" (?GetFontInfoSys@Upp@@YA?AUCommonFontInfo@1@VFont@1@@Z) already defined in Draw.lib(FontWin32.obj)
FT_fontsys.lib(FT_fontsys.obj) : error LNK2005: "struct Upp::GlyphInfo __cdecl Upp::GetGlyphInfoSys(class Upp::Font,int)" (?GetGlyphInfoSys@Upp@@YA?AUGlyphInfo@1@VFont@1@H@Z) already defined in Draw.lib(FontWin32.obj)
FT_fontsys.lib(FT_fontsys.obj) : error LNK2005: "void __cdecl Upp::RenderCharacterSys(struct Upp::FontGlyphConsumer &,double,double,int,class Upp::Font)" (?RenderCharacterSys@Upp@@YAXAAUFontGlyphConsumer@1@NNHVFont@1@@Z) already defined
in Draw.lib(FontWin32.obj)
C:\upp-svn\out\reference\MSC9.Turtle\WebWord.exe : fatal error LNK1169: one or more multiply defined symbols found
To fix this, the package dependency in WebWord to plugin/DroidFonts needs to be conditionalized with When: TURTLE && !WIN32.
The last one can be solved by moving:
extern StaticRect& DesktopRect();
outside of the bool Ctrl::StartSession() function in Turtle/Server.cpp.
--
The WebWord then compiles, links and runs just fine on Windows (for one client session:).
Best regards,
Tom
|
|
|
 |
|
TURTLE alpha status
By: mirek on Mon, 03 February 2014 20:25
|
 |
|
Re: TURTLE alpha status
By: Didier on Mon, 03 February 2014 23:10
|
 |
|
Re: TURTLE alpha status
By: mirek on Tue, 04 February 2014 07:48
|
 |
|
Re: TURTLE alpha status
By: Tom1 on Tue, 04 February 2014 09:47
|
 |
|
Re: TURTLE alpha status
By: Tom1 on Tue, 04 February 2014 11:33
|
 |
|
Re: TURTLE alpha status
By: Didier on Fri, 07 February 2014 16:12
|
 |
|
Re: TURTLE alpha status
By: mirek on Mon, 10 February 2014 09:25
|
 |
|
Re: TURTLE alpha status
By: Tom1 on Mon, 10 February 2014 14:28
|
 |
|
Re: TURTLE alpha status
By: mirek on Tue, 11 February 2014 08:07
|
 |
|
Re: TURTLE alpha status
By: Tom1 on Tue, 11 February 2014 10:11
|
 |
|
Re: TURTLE alpha status
By: mirek on Tue, 11 February 2014 11:02
|
 |
|
Re: TURTLE alpha status
By: Tom1 on Tue, 11 February 2014 11:51
|
Goto Forum:
Current Time: Sat Jul 19 04:53:01 CEST 2025
Total time taken to generate the page: 0.03771 seconds
|