Home » Developing U++ » UppHub » SysInfo, Functions4U and Controls4U packages
|
Re: SysInfo, Functions4U and Controls4U packages [message #23969 is a reply to message #23968] |
Sat, 12 December 2009 21:01   |
d_th
Messages: 20 Registered: April 2009
|
Promising Member |
|
|
Hi Koldo,
that is looking great, but if i try to compile it on my ubuntu 9.10 with ultimate 1801 ther ar some bugs:
Linking...
/home/dieter/upp.out/Functions4U/GCC.Gui.Mt.Shared/Functions 4U.a(Functions4U.o): In function `GetExtExecutable(Upp::String)':
Functions4U.cpp:(.text+0x5c8c): undefined reference to `LoadFile_Safe(Upp::String)'
collect2: ld returned 1 exit status
There were errors. (0:01.34)
Do you know whats wrong?
Best regards
Dieter
|
|
|
|
Re: SysInfo, Functions4U and Controls4U packages [message #23974 is a reply to message #23968] |
Sun, 13 December 2009 13:25   |
d_th
Messages: 20 Registered: April 2009
|
Promising Member |
|
|
Hi Koldo,
ok, after i Download the Version 1805 the Demo is working.
But the Controles4u more Controles ends with this Message:
Creating library...
ar: creating /home/dieter/upp.out/plugin/png/GCC.Gui.Mt.Shared/png.a
/home/dieter/upp.out/plugin/png/GCC.Gui.Mt.Shared/png.a (31652 B) created in (0:01.99)
----- Controls4U ( GUI MT MAIN GCC SHARED LINUX POSIX ) (11 / 11)
Controls4U.cpp
Controls4U: 1 file(s) built in (0:03.55), 3556 msecs / file, duration = 3570 msecs, parallelization 0%
Linking...
/usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crt1.o: In function `_start':
/build/buildd/eglibc-2.10.1/csu/../sysdeps/i386/elf/start.S: 115: undefined reference to `main'
collect2: ld returned 1 exit status
There were errors. (6:03.68)
I think, you know the reason?!
Thanks for your work and support,
Dieter
|
|
|
|
|
Re: SysInfo, Functions4U and Controls4U packages [message #23982 is a reply to message #23979] |
Mon, 14 December 2009 08:23   |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
andrei_natanael wrote on Mon, 14 December 2009 00:35 | Hello Koldo,
I have one suggestion for StaticArrow(and StaticLine), could you use enumerations for SetOrientation and SetEnds i believe it's simple(more portable) to use an enum than entering a string which depends on encoding.
In example:
enum ArrowEnds
{
LeftEnd,
RightEnd,
LeftRightEnd,
NoEnd
};
arrow.SetEnds(LeftEnd);
The only inconvenient is that you have to find the right naming for orientations and ends.
Andrei
|
Hello Andrei
You are right in all. I will put the two systems.
The idea came about for example I do not know a nice way to define with an enum a line like this :

Well, I found this "_┌" as the best 
Best regards
Koldo
-
Attachment: Dib.PNG
(Size: 4.46KB, Downloaded 1088 times)
Best regards
Iñaki
|
|
|
Re: SysInfo, Functions4U and Controls4U packages [message #23994 is a reply to message #23982] |
Tue, 15 December 2009 23:33   |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello andrei_natanael
Changes done, uploaded and documented.
Now there are enums to be used in SetOrientation() and SetEnds():
enum LineOrientation {OrVert, OrHor, OrNW_SE, OrSW_NE, OrNW_SE_HVH, OrSW_NE_HVH, OrNW_SE_VHV, OrSW_NE_VHV};
enum ArrowEnds {EndLeft, EndRight, EndLeftRight, NoEnd};
The initial String options remain as there are more intuitive 
Best regards
Koldo
Best regards
Iñaki
|
|
|
|
Goto Forum:
Current Time: Thu May 01 09:05:28 CEST 2025
Total time taken to generate the page: 0.03203 seconds
|