Re: [fpc-pascal] profiler

2005-07-04 Thread Jan Ruzicka
On Jul 2, 2005, at 17:18, Peter Vreman wrote: At 10:06 2-7-2005, you wrote: I have problems when compiling with -pg (profiler) Is this my fault or a compiler error? P:\FmtBCD>ppc386 -a -pg -Croit -Op1 testprof Free Pascal Compiler version 2.1.1 [2005/06/25] for i386 Copyri

[fpc-pascal] Segmentation Fault on executables generated by freepascal for ARM

2005-07-04 Thread Jose Pascual
Hi, I have downloaded FPC 2.0.0 for ARM and installed. I have compiling a project in pascal with socket. To compile the program I need to use Xc switch ("pass --shared to the linker (Unix only)"). but when I run the executable program I receive a segmentation fault! If I don't use Xc switch I hav

Re: [fpc-pascal] fpdoc questions

2005-07-04 Thread Matt Emson
> This doesn't work: > -Fi\..\inc Because the notion of '/' in Unix is completely alien in Windows. Closest equiv is "X:\" where X is a specific drive letter. After all, '/' is the root of the logical filesystem in most UNIX alike OS (LINUX, BSD, BeOS etc..) You'll be wanting '~' to work next ;-)

Re: [fpc-pascal] fpdoc questions

2005-07-04 Thread L505
| is there a: | .\ | on windows? Okay, to answer my own question...now I see. Just some simple syntax misunderstandings. On win32 This works: -Fi..\inc This doesn't work: -Fi\..\inc On GnuLinux -- This works input="./system.pp -Fi../unix/" This doesn't work input

[fpc-pascal] array of Char -> String conversion

2005-07-04 Thread Vinzent Hoefler
Hi, is there a standard routine that converts an "array of Char" type to a (Short)String of the same length as the Char-array? The automatic conversion of the compiler seems to treat it as null-terminated C-string, which is not what I want. Vinzent. -- public key: http://www.t-domaingrabbin

Re: [fpc-pascal] fpdoc questions

2005-07-04 Thread L505
| | Normally, relative paths should work. Try using ./system.pp Yes that worked on linux. Well, I'll try some things on win32 .. not sure what the equivilent of ./ is on windows. is there a: .\ on windows? | That is one of the principal reasons why fpdoc was developed: | strict separation of s

Re: [fpc-pascal] fpdoc questions

2005-07-04 Thread Michael Van Canneyt
On Mon, 4 Jul 2005, L505 wrote: > > | > fpdoc --package=rtl --input="system.pp -Fi/directory/" > | > > | > Is that the correct syntax? I can't get it to find my include files that > it > | > needs. I am putting the quotes in the wrong place maybe.. > | > | No, the syntax is correct. > | > >

Re: [fpc-pascal] fpdoc questions

2005-07-04 Thread L505
| > fpdoc --package=rtl --input="system.pp -Fi/directory/" | > | > Is that the correct syntax? I can't get it to find my include files that it | > needs. I am putting the quotes in the wrong place maybe.. | | No, the syntax is correct. | I tried using absolute paths for the unit I am running fpd

Re: [fpc-pascal] fpdoc questions

2005-07-04 Thread Michael Van Canneyt
On Sat, 2 Jul 2005, L505 wrote: > Question 1: > > fpdoc --package=rtl --input="system.pp -Fi/directory/" > > Is that the correct syntax? I can't get it to find my include files that it > needs. I am putting the quotes in the wrong place maybe.. No, the syntax is correct. > > Question 2: >