FPC operator overloading doesn't work inside classes, it must be declared
globally, so method2 should work. What error do you get? What FPC version do
you use?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-operator-overloading-tp4029399p4029400.html
Se
> Is there anyway to avoid this dilemma? Because I don't want treap.pas to
"reversely" rely on a specialized class.
No, it's not a dilemma, but rather a requirement. Before generics
specialization, all required operations for given type must be known. This
is because the symbol table when the gen
No such a framework yet, but we have unit testing frameworks on which you can
do TDD on top of. FPCUnit is distributed along, while FPTest is 3rd party.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TDD-tp4029488p4029507.html
Sent from the Free Pascal
tiOPF and Greyhound (+ my ghORM) are two frameworks I've ever used. There are
others, but I never touch them.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-CRM-and-MVC-tp4029487p4029508.html
Sent from the Free Pascal - Lazarus mailing list archive at N
> I don't think my built in help is working, F1 does nothing.
How do I enable built in help?
http://wiki.freepascal.org/Installing_Help_in_the_IDE
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Ok-I-give-up-tp4029554p4029579.html
Sent from the Free
> as all my programs use string type, change them all to AnsiString is
scaring and I don't know the consequence at all
Do you access the string's internal structure? Do you write the string to
file directly instead of taking its content? If not, then nothing you have
to worry about. Standard strin
> My question is, why the above code with string works sometime, but not
alwasy fail?
TStream.Write expects a buffer, typically the first element of an item (NOT
a pointer to it) and the length (number of elements after first one).
> fs.Write(s, Length(s));
Here you try to give the WHOLE string,
> I was using an INI file, but record make things a lot easier.
If you use TIniFile, you don't have to worry about saving and restoring
values. It's much easier than writing your own saving/restoring procedure.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/La
> If a buffer expect the first "element", and count is the number of elements
to write, then what is the unit size of that element? is it always "byte"?
From
http://www.freepascal.org/docs-html/rtl/classes/thandlestream.write.html:
"Write overrides the Write method of TStream. It uses the Handle p
Nice news Sven, so now I can drop the hacked 2.5.1?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Android-LCL-example-with-2-7-1-tp4029697p4029702.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
> Could anyone explain what's SIGFPE?
SIGFPE stands for SIGnal Floating Point Exception, that is caused by a
probably invalid operation involving floating points.
> Why there is a SetExceptionMask?
Probably to override the same thing already done by (implicitly used)
libraries, e.g. gtk2
> Why
Installing libx11-dev should automatically install libxcb-dev (which is the
one you miss)
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Error-while-compiling-tp4029732p4029741.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
Lazarus 1.1 r40503 FPC 2.7.1 r23704, both my app and androidlcl example
crashes with this:
I/lclapp ( 738): [FORMS.PP] ExceptionOccurred
I/lclapp ( 738): Sender=EIntOverflow
I/lclapp ( 738): Exception=Arithmetic overflow
I/lclapp ( 738): Stack trace:
I/lclapp ( 738): $46AC306C
I
Where did you search? It's 0.6.5 in Lazarus-CCR (I have 0.6.6 from svn):
http://sourceforge.net/projects/lazarus-ccr/files/lNet/
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Installing-Lazarus-tp4029785p4029790.html
Sent from the Free Pascal - Lazarus
> Is there any way to record all currently installed components (Lazarus
inbuilt and self-installed) and automatically re-install them when updating
Lazarus?
Lazarus doesn't distinguish components you add manually and the ones that
come with it. So you have to keep track yourself.
I put component
> Is there a wiki on Updating For Idiots?
AFAIK no, feel free to create one. Anyway, when you're able to program, you
shouldn't be included in idiots group anymore...
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-update-tp4029944p4029960.html
I'd say go for startlazarus.exe as it's the helper program used for
successful automatic restart after installing a package (I don't know
whether lazarus.exe will check and start startlazarus.exe by itself, but to
be safe, it's better to start from startlazarus.exe).
--
View this message in cont
> Regarding you usually need do do this not very often during your workflow.
I suppose what you mean is to create build mode for each
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FR-LCLWidgetType-not-easy-tp4030411p4030455.html
Sent from the Free Pas
> For using the LCL
in Android see http://wiki.freepascal.org/Android_Interface instead of
the link that you have.
The link above also applies to LCL, since quite recent 2.7.1 has pure
Android support (and I've been able to build my Android apps with it)
--
View this message in context:
http
> I´m confusing... I always find out that the "CONSOLE" directive exists only
for applications that does not require a GUI or in other words,
applications that does not require a X server
Linux applications are console, Linux doesn't have integrated GUI as a part
of the system like Windows (wh
If your design is modular enough, you can use frontend-backend architecture.
Only the frontend should differ. This could be achieved by having 2 .lpi
referencing the same backend unit, with each own frontend (user interface).
Another way would be to use build mode, differing in -Fu paths. One will
Assign all the RGBA value in one go, that would reduce the inner loop by 4
times. i.e.:
var
PixelPtr: PLongWord;
PixelRowPtr: PByte;
begin
PixelRowPtr := Fbmp.RawImage.Data;
for Y := 0 to Self.Height - 1 do
begin
PixelPtr := PLongWord(PixelRowPtr);
for X := 0 to (Self.Wid
> How can they sell this ... as a cross-platform solution ?
For most people, having at least two different targets already counts
cross-platform, even if the host is only one (yaoming). The prerequisites
suck, REALLY REALLY SUCK (why do the hell they need .NET framework there?)
Reference:
http://
Console is always defined on Linux, because all Linux applications have
console. I think it's better to use a custom define.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-detect-if-a-project-is-a-simple-program-or-a-application-tp4031127p4031128
> I have put a bounty to get a lazarus installer with android free pascal
cross compile included.
I've seen it and I guess I can do it since I already have in my current
setup on Linux. But I'm too lazy to open my Windows again... :P
A problem that might appear is that since the support is availa
http://lazarus-ccr.sourceforge.net/docs/lcl/lclversion/index.html
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Get-Lazarus-version-at-runtime-tp4031280p4031286.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
__
> 'Project TextHeight raised exception "External SIGSEGV" in file
'.\include\lclintf.inc' at line 184.'
What's there? It's part of lcl, so look for the file in lcl folder.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TextHeight-in-Console-App-tp4031
OK, that means it tries to get something from current widgetset, which is nil
for a console application. I guess LCLBase is the least thing you can use
from LCL for a console app. You could follow Graeme's advice.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/
Isn't the error message clear enough?
> PPU Loading C:\Develop\fpc\2.7.x\units\arm-android\rtl\system.ppu
> Trying to use a unit which was compiled with a different FPU mode
The compiler tries to load the system unit, but it's compiled with different
FPU mode that the one you're targetting with.
> also physically deleting C:\Develop\fpc\2.7.x\units\arm-android directory
and recompiling fpc with CROSSOPT="-CfVFPV3 -OoFASTMATH -CpARMV6" I get the
same error.
This is what I actually mean by "cleaning up your arm-android installation".
If you've done that, then retry:
> if I use only CROSSOP
> Currently it needs to be compiled without -WG (so you have this ugly cmd
window) - this will change as soon as I don't need debug info output any
more.
Use DebugLn instead, it will work with/without standard output available.
--
View this message in context:
http://free-pascal-lazarus.9890
Just ignore the warnings, they seem to be safe for FPC programs (FPC doesn't
use GCC initializer/finalizer, it has its own). This may be caused by newer
binutils, whose behavior is documented here:
http://gcc.gnu.org/onlinedocs/gccint/Initialization.html
--
View this message in context:
http://
OnCreate of what? For TForm, the Sender parameter would be... the form
itself. Why don't you directly set the property? i.e. ComboBox1.AutoComplete
:= true;
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TComboBox-with-AutoComplete-property-tp4031889p40
> I has many TComboBox components on the forms without the AutoComplete
property set to True, so I was looking for the easy way to make it True
during the run time.
Then loop over the components instead of checking the Sender only
--
View this message in context:
http://free-pascal-lazarus.989
I fix this a little while ago in trunk. 1.0.10 should be free from this bug.
What's your fpc version?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-Compile-Error-tp4031986p4031988.html
Sent from the Free Pascal - Lazarus mailing list archive at
AFAIK TTIFFImage (or something similar) is already supported in trunk.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TIFF-images-tp2825743p2826501.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
__
For this, you should use TProcess without poWaitOnExit option. ExecuteProcess
would block, always.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-ExecuteProcess-do-not-wait-for-process-on-Linux-tp2838202p2839464.html
Sent from the Free Pascal - Lazarus ma
> Use:
> menuItem.OnClick := @MenuClick;
Or compile in Delphi compatibility mode--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Menu-Click-Event-in-Runtime-tp2880080p2880463.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
I've only tested THTMLPort and GeckoPort. For me, GeckoPort seems to do the
job better. Though I haven't tried, QT WebKit should do it as good as Gecko,
remembering that it's Google Chrome's engine (Gecko is used by Firefox).
--
View this message in context:
http://free-pascal-lazarus.989080.n3.n
Maybe this would sound overcomplicated, but I create a special webmodule for
this (because I refer it dynamically as well in my templates).
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-fpWeb-and-static-content-tp2977708p2980540.html
Sent from the Free P
Well I got a slightly different condition after updating fpc, lazarus and
embweb to their latest version, they finally work fine together. If you
haven't please consider upgrading your lazarus and/or fpc first.
Anyway, what's your action code?
--
View this message in context:
http://free-pascal-
Have you configured your fppkg? Check the wiki entry for fppkg
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Embweb-lpk-tp3006296p3011798.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
___
You can try fooling the compiler by making ld symlink to gold (of course you
better back up your real ld)
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Alternative-linker-tp3021504p3022064.html
Sent from the Free Pascal - Lazarus mailing list archive at
I guess you haven't seen:
1) http://wiki.lazarus.freepascal.org/Anchor_Docking#Docking_in_the_IDE
2) http://wiki.lazarus.freepascal.org/New_IDE_features_since#Docked_IDE
3) http://wiki.lazarus.freepascal.org/Manual_Docker *older hack, don't know
if it still works
--
View this message in context:
I realize that when I change from embedded server to, for instance, CGI, some
things must be adjusted. For example, I use TRequest.ScriptName to get the
base path of my web. This seems OK for CGI but not for embedded server,
because it's not set there. I even got almost totally different environmen
Thanks for answering, however the problem is not yet solved.
> The whole point of fpweb is to abstract away the source of the information
> of the request.
I know, but as I said something that works across the webapp type (like the
base url) should exist.
> The Application.ApplicationURL is set
> It's not always possible to get the Application-URL. That's a problem
> with other server-side weblanguages too.
Maybe... the PHP framework I use require me to specify the base URL
(relative from the host:port) like /myproj/ for
http://localhost:8080/myproj/ assuming the webserver is listening
Using some kind of configuration file sounds like a good solution.
@Joost:
I'll try to look at inside of TWebPage, maybe I can steal something from
there... >:)
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/EmbWeb-Moving-between-webapp-type-caveats-tp3053108p30
I have a
http://free-pascal-lazarus.989080.n3.nabble.com/file/n3076763/LazarusPortable.zip
portable launcher source code extracted and modified from original version
by Juan A Melendez (WARNING: kinda i386-win32 centric, please modify as
necessary). Put this launcher in a directory, inside the di
You mean http://nestedvm.ibex.org/ this ? I gotta take a look at it, it
should be possible if the converter plays at binary level instead of source
level. I wonder how it converts call to routines residing in dll? JNI?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.
Seems like codetools parser bug. Try writing it type by type:
type
Tp2pMessageClass = class of Tp2pMessage;
Tp2pMessageClassArray = array [0 .. 1] of Tp2pMessageClass;
const
MsgTypes: Tp2pMessageClassArray = (
...
);
--
View this message in context:
http://free-pascal-lazarus.989080
Lazarus' makefile is different from FPC, it expects LAZARUS_INSTALL_DIR
instead of INSTALL_PREFIX for installation location
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Building-Lazarus-for-Windows-tp3174724p3176979.html
Sent from the Free Pascal - Laza
> Lazarus requires rtl and package sources to lay inside \sources while
FPC provides them inside fpcsrc folder.
Huh? Isn't it configurable in environment options? I kept FPC binaries, FPC
source code, and Lazarus (can't be separated between binaries and source
code) in their own directories. That
> I think a warning if the name inside of 'with' overrides a name from outer
scope would be an acceptable compromise.
I agree with this solution, it doesn't change the syntax, yet it gives
better chance to spot wrong scope of identifier which could happen during
porting or upgrade.
--
View this m
> Is it safe to have both the Linux and Windows projects in the same tree,
without any harmful side effects?
Yes, of course. Did you do it so they could share common units?
> I would love to use Qt or Gtk instead of Win32 for the Windows side, but I
> am not ready to locate subtle bugs and incomp
> The same app compiled on my Debain Sid, i get
> buttons Captions 'Ja' and 'Nein' even if i comment out the code above.
AFAIK your system locale is the default, either you have to provide language
choice options or hardcode the language you want to translator functions.
--
View this message in
> Using .res files requires fpc 2.4.4+ and 0.9.29+.
Wasn't it 2.4.0+?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Files-with-rst-compiled-files-and-lrs-extensions-tp3258318p3258724.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabbl
The Development Tools lists only MSVS and Adobe ColdFusion, surely the author
is just a mainstream person. He knows only what marketing told him.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-67-Open-source-replacement-apps-and-we-are-not-on-the-list-tp3
> I seem to remember that there is an article about same in the FPC Wiki.
Yep, here: http://wiki.lazarus.freepascal.org/OpenMP_support
but it looks like no one is working on it...
More can be found here:
http://wiki.lazarus.freepascal.org/Category:Parallel_programming
--
View this message in co
* cross posted from forum *
I'm converting a fpWeb project to use EmbWeb, however I got compilation
errors saying fpEmbWeb unit not found. When I open project
options->inherited, I don't see any EmbWeb path (and indeed its path is not
added to -Fu options) there yet I have it as the project depend
> Your embweb is designtime only.
> See Package options / IDE integration / package type.
Right, thanks. It's the default value of the package. Should this be
reported to Joost? I took it from fppkg.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Package-output-
> Aparently, Lazarus is looking for libpq.so.4, while my implementations have
libpq.so.5
It shouldn't be hardcoded AFAIK: libpq.so only, which may be a symlink to
the correct version. Try checking the source code whether the .4 is
hardcoded or not.
--
View this message in context:
http://free-pa
AFAIK no, only TComponent derived classes have streamer implementation now
(take a look componentstreaming and pascalstream example).
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-object-streams-tp3351667p3352663.html
Sent from the Free Pascal - Lazarus
> I cannot confirm that, seeing no such option in the IDE.
Well, do you have it installed? Or at least have you read
http://wiki.lazarus.freepascal.org/KOL-CE this ?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Support-for-dotted-unit-name-tp3476470
> From the CodeRage 6 videos all I could see is that they now
differentiate between VCL (eg: vcl.forms.pas) and FireMonkey (eg:
fm.forms.pas) units.
Too bad... now they will face problems when refactoring the framework,
possibly causing users to create ifdefs in uses clause. I don't really know
Try the example here:
http://www.freepascal.org/docs-html/rtl/keyboard/getkeyevent.html
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-read-single-char-from-STDIN-tp3518536p3520501.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.co
> What commands do I have to use to rebuild FPC another target OS/CPU like
Win32/i386 will be supported ?
http://wiki.lazarus.freepascal.org/Cross_compiling
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Custom-OS-CPU-targets-for-FPC-build-help-tp3621041
Same error I got about two days ago svn. I just crazily typecast the
problematic expression to the expected type and it compiles smoothly (and no
bug so far, because I haven't used the dbgrid :p)
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Problem-comp
The book seems to be written with OpenOffice.org / LibreOffice, that would be
difficult to track changes.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Contribute-to-a-book-instead-of-wiki-tp3789922p3792385.html
Sent from the Free Pascal - Lazarus mailin
> Oh yes, and it shows them grafically, not as raw text.
Now that's something I don't know :)
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Contribute-to-a-book-instead-of-wiki-tp3789922p3793507.html
Sent from the Free Pascal - Lazarus mailing list arc
Lazarus svn r35704
FPC svn r20468
Kubuntu 11.10 x86
Whenever I try to execute from desktop shortcut (.desktop) or
double-clicking associated file, I got "Disk full" message box. I've n-tuple
checked whether there are other Lazarus/FPC installed but `which` seems to
point to the correct instance an
A reboot fixes the issue :)
Though I'm still curious why...
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Cannot-run-lazarus-other-than-from-terminal-tp3798099p3798160.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
_
Where is this FPDocManager? I've seen a thread about it, but I can't find (or
miss due to skimming) where it is.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPDocManager-news-tp3810758p3811886.html
Sent from the Free Pascal - Lazarus mailing list archi
Error 193 is "%1 is not a valid Win32 application", what is your .Executable
or .CommandLine property?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TProcess-and-Windows-XP-tp4032239p4032244.html
Sent from the Free Pascal - Lazarus mailing list archive
http://svn.freepascal.org/svn/lazarus/trunk/ide/sourceeditor.pp ?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-SynEdit-Code-Completion-tp4032288p4032289.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
_
> Annotations like in Java would be nice...
No IMHO, that would complicate reading the code (more cluttered) as you can
see in the newer Delphi versions (called attributes instead of annotations
though).
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-S
The whole JEDI sucks, dependencies hell everywhere and IS TIED TO WINDOWS!
Some of the components have been converted though.
Virtual Treeview is available for Lazarus.
Quickreport is not needed because we have LazReport, more over, FastReport
is also Lazarus compatible.
Lazarus can connect to many
> Indeed! More people should be introduced [and educated] to the much
> better open source database servers out there, like Firebird and
> PostgreSQL.
Or if they insist on using MySQL (compatible alternative): MariaDB
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabb
> Well, then they need to be added for Delphi compatiblity :o
I can't say anything anymore when the reason is this :)
> They have been added. It's just not yet in trunk.
Hoo... a hidden branch?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Should-T
> Please I would like to know if its possible to fpuname function for
windows?
No, the containing unit is BaseUnix, Windows doesn't implement unix
functions. You have to use the one from Windows unit since I don't think
cross platform function exists yet.
--
View this message in context:
http:
Both code should be fairly in sync, but use the graeme version instead, it
may contain Lazarus specific fixes.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Pascal-Script-and-Lazarus-Free-Pascal-tp4032756p4032759.html
Sent from the Free Pascal - Lazaru
> 'make' is not in the search path.
Correct 'make' to 'fpc'
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Build-Lazarus-on-Linux-Make-is-deprecated-tp4032830p4032843.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
In short, you can't put it in the .dpr if you want it to be accessible from
all units. Actually, there's not really any magic behind TApplication, you
can still create your own TApplication descendant (preferably in its own
unit) and assign that to Application variable. Provide a global property to
Seems like you're just getting a broken revision. This:
zipper.pp(2721) Error: Error while assembling exitcode 1
zipper.pp(2721) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
paszlib\units\arm-linux\zipper.s: Assembler messages:
paszlib\units\arm-linux\zipper.s:3
BorderStyle := bsNone
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-do-you-remove-form-caption-area-tp4033716p4033717.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
___
L
No idea then, seems to be Windows API specific
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-do-you-remove-form-caption-area-tp4033716p4033726.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
> confused on what control to use (timage, tbitmap, something else)and what
are the steps to get the image to that control?
TImage is meant for static image, TBitmap could be one of the possible image
container of TImage, or used freely to draw or manipulate other bitmaps.
Just drop a TImage and s
3-4 comments to help promoting Lazarus/Free Pascal to them. Mind to help as
well, guys?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Graeme-would-love-this-or-not-I-think-tp4033781p4033788.html
Sent from the Free Pascal - Lazarus mailing list archive
Looks like it can't find cairo development library to link
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033853.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
_
> I have the same problem on Ubuntu 13.04 and the cairo libs are installed.
Including the -dev package?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033860.html
Sent from the Free Pascal - Lazarus ma
Could it be the functions were splitted in two libraries sometime ago?
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033871.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
> I am trying to find where WriteLn is declared; but, apparently, WriteLn
is among the select few that Lazarus will ignore 'Find Declaration'
requests --at least that's how it behaves (latest Lazarus stable) on my
side.
WriteLn is NOT a regular procedure. It's rather a special command for the
If I understood correctly, you want to override the meaning of WriteLn (for
programs and units using globals.pas), right? In that case, just create
Write(Ln) procedure in globals unit. That will override the system unit one.
However, you can't have the one with variable number of arguments, at leas
> In project1.lpr file line 21 is "end."
In case of link time warning/error, no information related to source code
that can be used for this. The location information available is the last
tokens that the parser sees: end.
> /usr/bin/ld: warning: /opt/lazarus/link.res contains output sections; d
You need to set -Fl to point to the NDK libraries, read up fpc.cfg thing
here:
http://wiki.freepascal.org/Android#Building_cross_compiler
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Compilation-error-when-targeting-Android-tp4034178p4034179.html
Sent
uses
SysUtils;
var
Date1,Date2: TDate;
Y,M,D: Word;
begin
Date1 := EncodeDate(2012,12,21);
Date2 := EncodeDate(2013,01,01);
DecodeDate(Date2 - Date1,Y,M,D);
// you have them in Y, M and D, respectively
end.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.na
Indeed that was wrong, I shouldn't exploit the internal details. Below is the
correct one (still no need for that complicated code of yours):
uses
SysUtils,DateUtils;
var
Date1,Date2: TDate;
Y,M,D: Word;
begin
Date1 := EncodeDate(2012,12,21);
Date2 := EncodeDate(2013,01,01);
Y :
CHM for me, it has nice features that web based one can't do fast.
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Local-CHM-help-files-or-web-based-tp4034271p4034272.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
--
__
> Does heaptrc intercept and monitor memory allocation throughout the program
execution, or does it do a scan of memory usage for output only at program
shutdown?
Look at the source code, it's open :)
Basically HeapTrc will replace the current memory manager with its own,
tracing everything that's
{$R} (FPC style) resources are not the same as Lazarus resources. See:
http://wiki.freepascal.org/Lazarus_Resources
--
View this message in context:
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Resources-tp4034456p4034457.html
Sent from the Free Pascal - Lazarus mailing list archive
101 - 200 of 327 matches
Mail list logo