Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
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:

int64      sent_prev;


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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MT/GuiLock rules changed
Next Topic: plugin/LZMA
Goto Forum:
  


Current Time: Sat Jul 19 04:53:01 CEST 2025

Total time taken to generate the page: 0.03771 seconds