RE: [lazarus] Compiling, outside lazarus environment
Ok ... Done ! Greetz Jo --- Engineering:How will this work? Science:Why will this work? Management: When will this work? Liberal Arts: Do you want fries with that? -Original Message- From: Vincent Snijders [mailto:[EMAIL PROTECTED] Sent: dinsdag 23 mei 2006 14:08 To: lazarus@miraclec.com Subject: Re: [lazarus] Compiling, outside lazarus environment Vliegen Jo schreef: Hello Mattias, This is just the thing, I was looking for. Now I can compile my application AND run it. Thanks for the quick and usefull hint ! Please add it to: http://wiki.lazarus.freepascal.org/index.php/IDE_tricks Vincent --- Engineering:How will this work? Science:Why will this work? Management: When will this work? Liberal Arts: Do you want fries with that? -Original Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: dinsdag 23 mei 2006 12:35 To: lazarus@miraclec.com Subject: Re: [lazarus] Compiling, outside lazarus environment On Tue, 23 May 2006 12:31:13 +0200 Vliegen Jo [EMAIL PROTECTED] wrote: Hi, I finished importing a Delphi project, in Lazarus. Now I can run my program in the lazarus IDE. The next step I want to do, is to go outside of lazarus. I want to make a 'tarball' of my source, so I can install my program on every node, of my cluster. Unfortunatly, I'm having quite some trouble, trying to compile the pascal code on a command line. For example, I get lots of errors saying : Error: Identifier nog found result Are there any options, that lazarus adds, when compiling ... or so ? The IDE creates a *.compiled files with the options. Just copy the options from this file and adjust the paths for your nodes. Mattias Thanks in advance for any reply's Greetz Jo --- Engineering:How will this work? Science:Why will this work? Management: When will this work? Liberal Arts: Do you want fries with that? --- This e-mail, any attachments and the information it contains are confidential and meant only for the use of the addressee(s) only. Access to this e-mail by anyone other than the addressee(s) is unauthorized. If you are not the intended addressee (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver to anyone this message (or any part of its contents) or take any action in reliance on it. In such case, you should destroy this message and notify the sender immediately. If you have received this e-mail in error, please notify us immediately by e-mail or telephone and delete the e-mail from any computer. All reasonable precautions have been taken to ensure no viruses are present in this e-mail and its attachments. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Compiling, outside lazarus environment
On Tue, 23 May 2006 14:08:14 +0200 Vincent Snijders [EMAIL PROTECTED] wrote: Vliegen Jo schreef: Hello Mattias, This is just the thing, I was looking for. Now I can compile my application AND run it. Thanks for the quick and usefull hint ! Please add it to: http://wiki.lazarus.freepascal.org/index.php/IDE_tricks Added. With the hint of the Project - Compiler Options - Show Options. Mattias Vincent --- Engineering:How will this work? Science:Why will this work? Management: When will this work? Liberal Arts: Do you want fries with that? -Original Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: dinsdag 23 mei 2006 12:35 To: lazarus@miraclec.com Subject: Re: [lazarus] Compiling, outside lazarus environment On Tue, 23 May 2006 12:31:13 +0200 Vliegen Jo [EMAIL PROTECTED] wrote: Hi, I finished importing a Delphi project, in Lazarus. Now I can run my program in the lazarus IDE. The next step I want to do, is to go outside of lazarus. I want to make a 'tarball' of my source, so I can install my program on every node, of my cluster. Unfortunatly, I'm having quite some trouble, trying to compile the pascal code on a command line. For example, I get lots of errors saying : Error: Identifier nog found result Are there any options, that lazarus adds, when compiling ... or so ? The IDE creates a *.compiled files with the options. Just copy the options from this file and adjust the paths for your nodes. Mattias Thanks in advance for any reply's Greetz Jo --- Engineering:How will this work? Science:Why will this work? Management: When will this work? Liberal Arts: Do you want fries with that? --- This e-mail, any attachments and the information it contains are confidential and meant only for the use of the addressee(s) only. Access to this e-mail by anyone other than the addressee(s) is unauthorized. If you are not the intended addressee (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver to anyone this message (or any part of its contents) or take any action in reliance on it. In such case, you should destroy this message and notify the sender immediately. If you have received this e-mail in error, please notify us immediately by e-mail or telephone and delete the e-mail from any computer. All reasonable precautions have been taken to ensure no viruses are present in this e-mail and its attachments. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Compiling, outside lazarus environment
On 5/23/06, Vliegen Jo [EMAIL PROTECTED] wrote: The next step I want to do, is to go outside of lazarus. I want to make a 'tarball' of my source, so I can install my program on every node, of my cluster. As an extra information there is a wiki page with a tutorial about how to create Makefiles for lazarus software and even rpm packages. Here it is: http://wiki.lazarus.freepascal.org/index.php/Deploying_Your_Application -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] DataSource property
Hi Why the Data Controls property datasource don't accept this : DataModule1.Datasource1? ... uses DataModule1 ... Lazarus 0.9.15/ win32 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] DataSource property
On Tue, 23 May 2006 09:37:36 -0300 Urso [EMAIL PROTECTED] wrote: Hi Why the Data Controls property datasource don't accept this : DataModule1.Datasource1? ... uses DataModule1 ... This is not yet implemented in the designer. Do it manually in the OnCreate event of your form. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Dynamic Library on Linux??
Hi, all I can't access the lazarus site (the forum nor the mailing list archives), and can't find any information relate to how to load libraries in linux. I'm trying to make a dynamic library under Linux but I get the .o generated not the .so The project (only the main unit) compiles without errors, but doesn't generates the .so file ¿?. Is possible to develop dynamic libraries for Linux with Lazarus?? If the answer is Yes (have my fingers cross!!) How do I load them?? (I can't find the dlopen, or equivalent, function). Thanks. David. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Compiling, outside lazarus environment
On Tue, 2006-05-23 at 09:25 -0300, Felipe Monteiro de Carvalho wrote: On 5/23/06, Vliegen Jo [EMAIL PROTECTED] wrote: The next step I want to do, is to go outside of lazarus. I want to make a 'tarball' of my source, so I can install my program on every node, of my cluster. As an extra information there is a wiki page with a tutorial about how to create Makefiles for lazarus software and even rpm packages. Here it is: http://wiki.lazarus.freepascal.org/index.php/Deploying_Your_Application What does this exactly have to do with Lazarus/fpc? Maybe you could better add a link to a RPM/SPEC tutorial. Your story isn't everywhere completely correct, and some vital parts are missing. You can correct it and try to write a rpm-tutorial yourself, but there are lots of those already... There are also several tools available to ease the work. For example, your explanation of the creation of the buildtree isn't complete. But there are tools to do that for you: http://www.fedoraproject.org/wiki/fedora-rpmdevtools Most commonly used rpm-tutorial: http://www-128.ibm.com/developerworks/library/l-rpm1/ http://www-128.ibm.com/developerworks/library/l-rpm2/ http://www-128.ibm.com/developerworks/library/l-rpm3/ Regards, Joost. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Compiling, outside lazarus environment
On 5/23/06, Joost van der Sluis [EMAIL PROTECTED] wrote: What does this exactly have to do with Lazarus/fpc? Maybe you could better add a link to a RPM/SPEC tutorial. This has everything to do with Lazarus/fpc. Deploying your application is part of the development. Think if the Wiki as a help file. Do you consider a section about how to deploy applications a good thing for a new user? I do think this page helps Lazarus/fpc users. I created it because I found it overwhelmingly hard to find updated and correct information about how to create a Makefile and a rpm package. Most tutorials out there are: - horribly outdated - extremely extensive - hard to understand - c-centric - distribution specific It took me months (yes, about 3 months at least) to finally be able to create a makefile and something close to an acceptable RPM. The objective of the page is to make it easier for others in the future, who want to deploy their Lazarus software. Your story isn't everywhere completely correct, and some vital parts are missing. Please contribute =) You can correct it and try to write a rpm-tutorial yourself, but there are lots of those already... This isn´t ment to be an exaustive rpm-tutorial. It´s about how to quickly create an rpm package for a lazarus / fpc software. Most commonly used rpm-tutorial: Yes, fell free to add a External Links section and put a complete tutorial there. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Dynamic Library on Linux??
On Tue, 23 May 2006, David Nicolás Abdala wrote: Hi, all I can't access the lazarus site (the forum nor the mailing list archives), and can't find any information relate to how to load libraries in linux. I'm trying to make a dynamic library under Linux but I get the .o generated not the .so The project (only the main unit) compiles without errors, but doesn't generates the .so file ¿?. Is possible to develop dynamic libraries for Linux with Lazarus?? If the answer is Yes (have my fingers cross!!) How do I load them?? (I can't find the dlopen, or equivalent, function). - dlopen and friends are in dynlibs unit (only called loadlibrary etc). - to create library you must create instead of a program a 'library': library mylibrary; uses myunit; exports MyFunction; // Case sensitive. end.
[lazarus] linking glscene
When I try to rebuild Lazarus from the IDE to include glscene I get the following vague message: W:\Lazarus\Snap_2006_05_10\ide\lazarus.pp(113,1) Error: Error while linking make.exe(2): *** (lazarus.exe) Error 1. If I remove the glscene package everything is ok. Any ideas? Andreas _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] What's wrong with this code?
begin if btnTestMeClick.tag=0 then begin btnTestMeClick.Caption:='Click me Again'; btnTestMeClick.tag:=1; end else begin btnTestMeClick.Caption;='Click'; btnTestMeClick.tag:=0; end end; On the if line, I'm getting this error: unit1.pas(32,6) Error: Wrong number of parameters specified This is copied almost word for word from the wiki tutorial. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] What's wrong with this code?
btnTestMeClick.Caption;='Click'; same as: btnTestMeClick.Caption; ='Click'; see the mistake now? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Dynamic Library on Linux??
Is possible to develop dynamic libraries for Linux with Lazarus?? If the answer is Yes (have my fingers cross!!) How do I load them?? (I can't find the dlopen, or equivalent, function). - dlopen and friends are in dynlibs unit (only called loadlibrary etc). - to create library you must create instead of a program a 'library': library mylibrary; uses myunit; exports MyFunction; // Case sensitive. end. Thanks, I found the functions. But I still have the problem that the .so doesn't get generated. I know how to create libraries (I'm a Delphi user, just new to Lazarus) and it is compiling ok. The problem is that the .o file is the only one that generates after building the project, how do I get the .so file?? David. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Dynamic Library on Linux??
On Tue, 23 May 2006, David Nicolás Abdala wrote: Is possible to develop dynamic libraries for Linux with Lazarus?? If the answer is Yes (have my fingers cross!!) How do I load them?? (I can't find the dlopen, or equivalent, function). - dlopen and friends are in dynlibs unit (only called loadlibrary etc). - to create library you must create instead of a program a 'library': library mylibrary; uses myunit; exports MyFunction; // Case sensitive. end. Thanks, I found the functions. But I still have the problem that the .so doesn't get generated. I know how to create libraries (I'm a Delphi user, just new to Lazarus) and it is compiling ok. The problem is that the .o file is the only one that generates after building the project, how do I get the .so file?? Ah. Hm. Is this only in lazarus, or also on the command-line ? Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] About Report Generator
Hello, There is another report generator or similarcomponents beyond LazReport? This needs to be implemented urgent in lazarus! Will only be possible to develop complete and professional applications with this.__Faça ligações para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/
Re: [lazarus] What's wrong with this code?
Op dinsdag 23 mei 2006 20:23, schreef John Meyer: begin if btnTestMeClick.tag=0 then begin btnTestMeClick.Caption:='Click me Again'; btnTestMeClick.tag:=1; end else begin btnTestMeClick.Caption;='Click'; btnTestMeClick.tag:=0; end end; On the if line, I'm getting this error: unit1.pas(32,6) Error: Wrong number of parameters specified This is copied almost word for word from the wiki tutorial. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives I am very new to Lazarus and not a Pascal programmer. I am not sure if it is a bug or not but using a name like btnTestMe for your buttun runs fine. Maybe a name ending on Click might confuse Lazarus maybe it expects an OnClick procedure for the control btnTestMe when using the name btnTestMeClick. Using Click at the end of a control's name might be confusing for your self as well. Rob. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Dynamic Library on Linux??
Sorry for what I'm going to write, but.. when I try to doit from the command line (with ld ¿rigth?) I get a lot of 'unknown reference', and really don't know wich directory to point at.. I'm not use to command line stuff, if there is a better way I'll try. By the way, when I 'Build' the project, in the messages windows it shows 'linking ... printlib.so', but doesn't generates it. Coud be that I'm pointing to the wrong linker? Should I set any environment stuff? Thanks. David. I know how to create libraries (I'm a Delphi user, just new to Lazarus) and it is compiling ok. The problem is that the .o file is the only one that generates after building the project, how do I get the .so file?? Ah. Hm. Is this only in lazarus, or also on the command-line ? Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
RE: [lazarus] What's wrong with this code?
a bug or not but using a name like btnTestMe for your buttun runs fine. IS NOT A BUG. CHECK the first assignment statement in the else's statements, it has ;= instead of :=. It is interpreted, as someone said before, as two separated statements: STATEMENT 1: btnTestMeClick.Caption; STATEMENT 2: ='Click'; Both statements are incorrect. Regards. -Mensaje original- De: Rob [mailto:[EMAIL PROTECTED] Enviado el: Martes, 23 de Mayo de 2006 03:41 p.m. Para: lazarus@miraclec.com Asunto: Re: [lazarus] What's wrong with this code? Op dinsdag 23 mei 2006 20:23, schreef John Meyer: begin if btnTestMeClick.tag=0 then begin btnTestMeClick.Caption:='Click me Again'; btnTestMeClick.tag:=1; end else begin btnTestMeClick.Caption;='Click'; btnTestMeClick.tag:=0; end end; On the if line, I'm getting this error: unit1.pas(32,6) Error: Wrong number of parameters specified This is copied almost word for word from the wiki tutorial. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives I am very new to Lazarus and not a Pascal programmer. I am not sure if it is a bug or not but using a name like btnTestMe for your buttun runs fine. Maybe a name ending on Click might confuse Lazarus maybe it expects an OnClick procedure for the control btnTestMe when using the name btnTestMeClick. Using Click at the end of a control's name might be confusing for your self as well. Rob. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] fpcUnit doesn't execute decorated tests
Graeme Geldenhuys wrote: Hi Dean, I wrapped our DB Connection code in a TTestSetup decendent class. I registered the test case with: RegisterTestDecorator(TDBConnectionSetupDecorator, TTreeviewFormTest); Executing the complete TTreeviewFormTest test case from the GUI Test Runner works fine. Selecting a individual test fails, as it never executes the test decorator. I created a breakpoint it my TDBConnectionSetupDecorator.OneTimeSetup; procedure, and it never reached it. I had a look at the code, but can't quite figure out where the problem is. :( I have an idea that it might be related to the following code in TGUITestRunner.BuildTree() but for the life of me I a can't see what. node := TestTree.Items.AddChildObject(rootNode, ASuite.Test[i].TestName, ASuite.Test[i]); if ASuite.Test[i] is TTestSuite then BuildTree(Node, TTestSuite(ASuite.Test[i])) else if TObject(ASuite.Test[i]).InheritsFrom(TTestDecorator) then BuildTree(Node, TTestSuite(TTestDecorator(ASuite.Test[i]).Test)); Regards, - Graeme - When you select an individual test it is not a TTestSetup descendent so it's not wrapped between a call to OneTimeSetup and OneTimeTeardown. The problem is in the way the TTestSetup objects are created when registered: procedure RegisterTestDecorator(ADecoratorClass: TTestDecoratorClass; ATestClass: TTestCaseClass); begin GetTestRegistry.AddTest(ADecoratorClass.Create(TTestSuite.Create(ATestClass))); end; As you can see to create the child tests I've done simply TTestSuite.Create(ATestClass), whereas I should have constructed the child tests as some TTestSetup themselves, to be wrapped in OneTimeSetup and OneTimeTeardown. Thank you for pointing out the bug, it never surfaced because I rarely use the TestDecorators (I'm trying to avoid the TestDecorators as they are breaking the isolation rule in testing). Anyway I'll try to fix it as soon as possible. Ciao, Dean _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] What's wrong with this code?
Try it with the wrong assignment ;= in the else statement and you will get a the error message illegal expression, you will not get the error message Wrong number of parameters as indicated by John. Try to use a button with the name btnTestMeClick (ending on Click in the name of the control) and you will get the error message as indicated by John. (This is at leased what happens on my SuSE Linux box). Regards, Rob Casparie. Op dinsdag 23 mei 2006 23:01, schreef Sergio Samayoa: a bug or not but using a name like btnTestMe for your buttun runs fine. IS NOT A BUG. CHECK the first assignment statement in the else's statements, it has ;= instead of :=. It is interpreted, as someone said before, as two separated statements: STATEMENT 1: btnTestMeClick.Caption; STATEMENT 2: ='Click'; Both statements are incorrect. Regards. -Mensaje original- De: Rob [mailto:[EMAIL PROTECTED] Enviado el: Martes, 23 de Mayo de 2006 03:41 p.m. Para: lazarus@miraclec.com Asunto: Re: [lazarus] What's wrong with this code? Op dinsdag 23 mei 2006 20:23, schreef John Meyer: begin if btnTestMeClick.tag=0 then begin btnTestMeClick.Caption:='Click me Again'; btnTestMeClick.tag:=1; end else begin btnTestMeClick.Caption;='Click'; btnTestMeClick.tag:=0; end end; On the if line, I'm getting this error: unit1.pas(32,6) Error: Wrong number of parameters specified This is copied almost word for word from the wiki tutorial. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives I am very new to Lazarus and not a Pascal programmer. I am not sure if it is a bug or not but using a name like btnTestMe for your buttun runs fine. Maybe a name ending on Click might confuse Lazarus maybe it expects an OnClick procedure for the control btnTestMe when using the name btnTestMeClick. Using Click at the end of a control's name might be confusing for your self as well. Rob. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] fpcUnit doesn't execute decorated tests
On 5/23/06, Dean Zobec [EMAIL PROTECTED] wrote: When you select an individual test it is not a TTestSetup descendent so it's not wrapped between a call to OneTimeSetup and OneTimeTeardown. The problem is in the way the TTestSetup objects are created when registered: Ah, that makes sence... :) Thank you for pointing out the bug, it never surfaced because I rarely use the TestDecorators (I'm trying to avoid the TestDecorators as they are breaking the isolation rule in testing). But TestDecorators work so well for things like setting up DB connections for a test suite. :) As I mentioned in a post in FPC-Devel. We had 27 test using the normal Setup and TearDown methods to create our DB Connections. Even though that is a small amount of tests, it took over 30 seconds to complete. Using the TTestSetup I now create a single DB Connection for all tests it the test suite. Time to complete all 27 test is around 1.8 seconds. :) Anyway I'll try to fix it as soon as possible. Thanks Dean! Regards, - Graeme - -- There's no place like 127.0.0.1 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Compile fails on project with long pathname (MacOS X)
On Mon, May 22, 2006 at 08:07:30AM +0200, Vincent Snijders wrote: Tom Verhoeff wrote: I recently upgraded to 0.9.14 and started a project, whose code is in a deeply nested directory tree with fairly long directory names, where one of the directory names contains a space. When compiling from the ide, this fails at the assembler. It seems to report a cut off path (the part with the space is included), though this could only be in the message printed (and not in the argument that it received). Does anyone have an idea what is the problem here? There has been a similar bug report (but not the same), which I tried hard to reproduce, but could not. The bug report was closed. http://www.freepascal.org/mantis/view.php?id=900 If you are willing to help me to reproduce this error, you can submit a new bug report. I'll try, but it is not that simple. Part of the problem may be that Lazarus supplies full (absolute) paths to the compiler (at least in the way I am using it; though I did not change many options from their defaults). However, when I use fpc separately (not with Lazarus), I typically provide relative paths (which are much shorter). Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. Computing Science PHONE: +31 40 247 41 25| Eindhoven University of Technology FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~wstomv/ | The Netherlands _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] What's wrong with this code?
Rob wrote: Op dinsdag 23 mei 2006 20:23, schreef John Meyer: begin if btnTestMeClick.tag=0 then begin btnTestMeClick.Caption:='Click me Again'; btnTestMeClick.tag:=1; end else begin btnTestMeClick.Caption;='Click'; btnTestMeClick.tag:=0; end end; On the if line, I'm getting this error: unit1.pas(32,6) Error: Wrong number of parameters specified Okay, let me make this a little clearer. if btnTestMeClick.tag=0 then This is the line that is causing the error. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] What's wrong with this code?
On Tue, 2006-05-23 at 19:31 -0600, John Meyer wrote: Rob wrote: Op dinsdag 23 mei 2006 20:23, schreef John Meyer: begin if btnTestMeClick.tag=0 then begin btnTestMeClick.Caption:='Click me Again'; btnTestMeClick.tag:=1; end else begin btnTestMeClick.Caption;='Click'; btnTestMeClick.tag:=0; end end; On the if line, I'm getting this error: unit1.pas(32,6) Error: Wrong number of parameters specified Okay, let me make this a little clearer. if btnTestMeClick.tag=0 then This is the line that is causing the error. if/elseif block is parsed as one statement... The error you have in the code is within the else/elseif block so the error line is given as starting at the first if. I've had this happen to me before as well.. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] What's wrong with this code?
John Meyer wrote: begin if btnTestMeClick.tag=0 then begin btnTestMeClick.Caption:='Click me Again'; btnTestMeClick.tag:=1; end else begin btnTestMeClick.Caption;='Click'; btnTestMeClick.tag:=0; end end; On the if line, I'm getting this error: unit1.pas(32,6) Error: Wrong number of parameters specified This is copied almost word for word from the wiki tutorial. What wiki tutorial, can you give a link? Then we have a complete compilable source. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] What's wrong with this code?
Vincent Snijders wrote: What wiki tutorial, can you give a link? Then we have a complete compilable source. Vincent http://wiki.lazarus.freepascal.org/index.php/Lazarus_Tutorial _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives