[fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Reinier Olislagers
Hi all,

Tinkering with my bootstrap SVN updater/installer.
Directory layout:

c:\development\binutils: as.exe, make.exe etc
Got these from
http://svn.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/

c:\development\fpcbootstrap\ppc386.exe
from
ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/i386-win32-ppc386.zip

c:\development\fpc: fpc fixes_2.6 source

When I run this command:
C:\development\binutils\make.exe
FPC=c:\development\fpcbootstrap\ppc386.exe
--directory=c:\development\fpc UPXPROG=echo COPYTREE=echo all

When I add c:\development\binutils to the path, it does seem to work.

How can I solve this, e.g.:
1. Would moving ppc386.exe to the binutils dir help?
2. Can I modify the path on the fly (I recall that will be
difficult/impossible to do on Linux/OSX anyway)?
3. Is there some option I can pass to make to let it find the right
binutils?
4. Something else I haven't thought about?

Thanks,
Reinier
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: FPC make all: as.exe not found unless in path

2012-02-02 Thread Reinier Olislagers
Wooops... see inline
On 2-2-2012 13:54, Reinier Olislagers wrote:
 Hi all,
 
 Tinkering with my bootstrap SVN updater/installer.
 Directory layout:
 
 c:\development\binutils: as.exe, make.exe etc
 Got these from
 http://svn.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/
 
 c:\development\fpcbootstrap\ppc386.exe
 from
 ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/i386-win32-ppc386.zip
 
 c:\development\fpc: fpc fixes_2.6 source
 
 When I run this command:
 C:\development\binutils\make.exe
 FPC=c:\development\fpcbootstrap\ppc386.exe
 --directory=c:\development\fpc UPXPROG=echo COPYTREE=echo all
I get
Error: Assembler as.exe not found...
and make errors out
 
 When I add c:\development\binutils to the path, it does seem to work.
 
 How can I solve this, e.g.:
 1. Would moving ppc386.exe to the binutils dir help?
 2. Can I modify the path on the fly (I recall that will be
 difficult/impossible to do on Linux/OSX anyway)?
 3. Is there some option I can pass to make to let it find the right
 binutils?
 4. Something else I haven't thought about?
 
 Thanks,
 Reinier

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Henry Vermaak

On 02/02/12 12:54, Reinier Olislagers wrote:

3. Is there some option I can pass to make to let it find the right
binutils?


You can pass CROSSBINDIR=/path/to/binutils.

Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Henry Vermaak

On 02/02/12 13:02, Henry Vermaak wrote:

On 02/02/12 12:54, Reinier Olislagers wrote:

3. Is there some option I can pass to make to let it find the right
binutils?


You can pass CROSSBINDIR=/path/to/binutils.


P.S.  I realise you're not cross compiling, but setting CROSSBINDIR 
should still add the directory to -FD.


Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Marcos Douglas
On Thu, Feb 2, 2012 at 9:54 AM, Reinier Olislagers
reinierolislag...@gmail.com wrote:

 Hi all,

 Tinkering with my bootstrap SVN updater/installer.
 Directory layout:

 c:\development\binutils: as.exe, make.exe etc
 Got these from
 http://svn.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/

 c:\development\fpcbootstrap\ppc386.exe
 from
 ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/i386-win32-ppc386.zip

 c:\development\fpc: fpc fixes_2.6 source

 When I run this command:
 C:\development\binutils\make.exe
 FPC=c:\development\fpcbootstrap\ppc386.exe
 --directory=c:\development\fpc UPXPROG=echo COPYTREE=echo all

 When I add c:\development\binutils to the path, it does seem to work.

 How can I solve this, e.g.:
 1. Would moving ppc386.exe to the binutils dir help?
 2. Can I modify the path on the fly (I recall that will be
 difficult/impossible to do on Linux/OSX anyway)?
 3. Is there some option I can pass to make to let it find the right
 binutils?
 4. Something else I haven't thought about?

Please, see this:
http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29

Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: FPC make all: as.exe not found unless in path

2012-02-02 Thread Reinier Olislagers
On 2-2-2012 14:08, Marcos Douglas wrote:
 On Thu, Feb 2, 2012 at 9:54 AM, Reinier Olislagers
 reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org wrote:
 When I add c:\development\binutils to the path, it does seem to work.

 How can I solve this, e.g.:
 1. Would moving ppc386.exe to the binutils dir help?
 2. Can I modify the path on the fly (I recall that will be
 difficult/impossible to do on Linux/OSX anyway)?
 3. Is there some option I can pass to make to let it find the right
 binutils?
 4. Something else I haven't thought about?
 
 Please, see this:
 http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29
 
Thanks Marcos,

Seen it. Don't exactly understand what you want me to do. Do you mean I
should write a batch file to change the path? I'm using an FPC program
to get the files, so that would be difficult...

Thanks,
Reinier


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Reinier Olislagers
On 2-2-2012 14:07, Henry Vermaak wrote:
 On 02/02/12 13:02, Henry Vermaak wrote:
 On 02/02/12 12:54, Reinier Olislagers wrote:
 3. Is there some option I can pass to make to let it find the right
 binutils?

 You can pass CROSSBINDIR=/path/to/binutils.
 
 P.S.  I realise you're not cross compiling, but setting CROSSBINDIR
 should still add the directory to -FD.
 
Thanks a lot, Henry,

That seems to work when testing make all on the command line; only
caveat is that a trailing \ does not work, so I have to make sure I
don't pass that ;)

However, when doing the same with make install:
C:\development\binutils\make.exe
FPC=c:\development\fpcbootstrap\ppc386.exe
CROSSBINDIR=C:\development\binutils --directory=c:\development\fpc
UPXPROG=echo COPYTREE=echo install

I get

C:/development/binutils/make.exe -C importtl install
make.exe[4]: Entering directory `c:/development/fpc/utils/importtl'
C:/development/binutils/ginstall.exe -m 755 -d //bin
C:/development/binutils/ginstall.exe: cannot create directory `//bin':
No such f
ile or directory
make.exe[4]: *** [fpc_install] Error 1
make.exe[4]: Leaving directory `c:/development/fpc/utils/importtl'
make.exe[3]: *** [importtl_install] Error 2

Same error seems to happen when running make install without the
CROSSBINDIR option; perhaps something wrong at my end.
I'll delete the source directories and start over...

Amy tips?

Regards,
Reinier
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: FPC make all: as.exe not found unless in path

2012-02-02 Thread Marcos Douglas
On Thu, Feb 2, 2012 at 10:13 AM, Reinier Olislagers
reinierolislag...@gmail.com wrote:
 On 2-2-2012 14:08, Marcos Douglas wrote:
 On Thu, Feb 2, 2012 at 9:54 AM, Reinier Olislagers
 reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org wrote:
 When I add c:\development\binutils to the path, it does seem to work.

 How can I solve this, e.g.:
 1. Would moving ppc386.exe to the binutils dir help?
 2. Can I modify the path on the fly (I recall that will be
 difficult/impossible to do on Linux/OSX anyway)?
 3. Is there some option I can pass to make to let it find the right
 binutils?
 4. Something else I haven't thought about?

 Please, see this:
 http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29

 Thanks Marcos,

 Seen it. Don't exactly understand what you want me to do. Do you mean I
 should write a batch file to change the path? I'm using an FPC program
 to get the files, so that would be difficult...

The tutorial explain all about the compilation of FPC and Lazarus...
I thought it was help you.

Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Henry Vermaak

On 02/02/12 13:37, Reinier Olislagers wrote:


However, when doing the same with make install:
C:\development\binutils\make.exe
FPC=c:\development\fpcbootstrap\ppc386.exe
CROSSBINDIR=C:\development\binutils --directory=c:\development\fpc
UPXPROG=echo COPYTREE=echo install

I get

C:/development/binutils/make.exe -C importtl install
make.exe[4]: Entering directory `c:/development/fpc/utils/importtl'
C:/development/binutils/ginstall.exe -m 755 -d //bin
C:/development/binutils/ginstall.exe: cannot create directory `//bin':


It's trying to create the install directory.  You probably want to 
provide it with a prefix of some sort to tell it where to do that.  Use 
INSTALL_PREFIX.


Marco's buildfaq is a very good resource for building fpc:

http://www.stack.nl/~marcov/buildfaq.pdf

Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: FPC make all: as.exe not found unless in path

2012-02-02 Thread Tomas Hajny
On Thu, February 2, 2012 13:58, Reinier Olislagers wrote:
 Wooops... see inline
 On 2-2-2012 13:54, Reinier Olislagers wrote:
 Hi all,

 Tinkering with my bootstrap SVN updater/installer.
 Directory layout:

 c:\development\binutils: as.exe, make.exe etc
 Got these from
 http://svn.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/

 c:\development\fpcbootstrap\ppc386.exe
 from
 ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/i386-win32-ppc386.zip

 c:\development\fpc: fpc fixes_2.6 source

 When I run this command:
 C:\development\binutils\make.exe
 FPC=c:\development\fpcbootstrap\ppc386.exe
 --directory=c:\development\fpc UPXPROG=echo COPYTREE=echo all
 I get
 Error: Assembler as.exe not found...
 and make errors out

 When I add c:\development\binutils to the path, it does seem to work.

 How can I solve this, e.g.:
 1. Would moving ppc386.exe to the binutils dir help?
 2. Can I modify the path on the fly (I recall that will be
 difficult/impossible to do on Linux/OSX anyway)?
 3. Is there some option I can pass to make to let it find the right
 binutils?
 4. Something else I haven't thought about?

I assume that you're aware of the compiler option -FD (which can be passed
to makefiles e.g. using OPT=-FD... or by having it in fpc.cfg unless
using option -n too), right?

Tomas


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Reinier Olislagers
On 2-2-2012 14:48, Henry Vermaak wrote:
 On 02/02/12 13:37, Reinier Olislagers wrote:

 However, when doing the same with make install:
 C:\development\binutils\make.exe
 FPC=c:\development\fpcbootstrap\ppc386.exe
 CROSSBINDIR=C:\development\binutils --directory=c:\development\fpc
 UPXPROG=echo COPYTREE=echo install

 I get
 
 C:/development/binutils/make.exe -C importtl install
 make.exe[4]: Entering directory `c:/development/fpc/utils/importtl'
 C:/development/binutils/ginstall.exe -m 755 -d //bin
 C:/development/binutils/ginstall.exe: cannot create directory `//bin':
 
 It's trying to create the install directory.  You probably want to
 provide it with a prefix of some sort to tell it where to do that.  Use
 INSTALL_PREFIX.
 
 Marco's buildfaq is a very good resource for building fpc:
 
 http://www.stack.nl/~marcov/buildfaq.pdf

Thanks, one of the reasons I'm writing this is because I keep forgetting
what the build FAQ says, rereading it, getting confused and trying again ;)

I see I'm actually passing PREFIX=c:\development\fpc in the make install
step in my code I guess I should change that to
INSTALL_PREFIX=c:\development\fpc

Thanks again,
Reinier
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-02 Thread Jorge Aldo G. de F. Junior
I would vote for a new function on all stream types to allow writing
strings in the expected way. Everybody hits that problem once.

2012/2/1 Lars nore...@z505.com:
 Graeme Geldenhuys wrote:
 On 2 February 2012 00:14, Michael Van Canneyt  wrote:

 Ehm.. this should be S[1], now you're writing the pointer.


 Thank you. That's what happens if you have too many very late nights
 programming - sleep deprivation catches up and one overlooks the
 simple mistakes.




 It's actually a common mistake. Also @s vs s, and @s[1], it can be
 confusing.

 It's one thing I don't like about unsafe languages, pointers, and such
 stuff. It's as if we are programming in advanced C, or C++. Common,
 pointer mistakes? this is C? Really? Can't we make it safer? LOL.

 What could be done to make this safer? I don't know. What does java do in
 a situation like this? Could we learn from it?

 If somehow the compiler could statically check that only s[1] is allowed,
 and not S, that would be good.
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Synapse: SSH client+cryptlib+private key

2012-02-02 Thread Reinier Olislagers
Hi all,

I've been fiddling with connecting to an SSH server.

Thanks to Ludo Brands' help I can use username/password with Synapse
(stable)+cryptlib.  I'm fiddling and trying to get private key
authentication to work.

While this compiles and runs, Ethereal shows SSH traffic just stops..
(on a host that requires private key auth).

What am I doing wrong (and/or is this even possible - Synapse docs don't
seem to indicate yes or no).

Thanks,
Reinier

//FTelnetSend is an instance of Synapse TTelnetSend
FTelnetSend.TargetHost := HostName;
FTelnetSend.TargetPort := IntToStr(Port);
FTelnetSend.UserName := UserName;
if PrivateKey  '' then
begin
  //Asume we're using password for private key passphrase
  FTelnetSend.Sock.SSL.PrivateKeyFile:=PrivateKey;
  FTelnetSend.Sock.SSL.KeyPassword:=Password;
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-02 Thread Giuliano Colla

Lars ha scritto:

It's actually a common mistake. Also @s vs s, and @s[1], it can be
confusing.

It's one thing I don't like about unsafe languages, pointers, and such
stuff. It's as if we are programming in advanced C, or C++. Common,
pointer mistakes? this is C? Really? Can't we make it safer? LOL.

What could be done to make this safer? I don't know. What does java do in
a situation like this? Could we learn from it?
The only clean solution I'm aware of is is the one used in old times 
by PLM, which completely banned the implicit pointer born with C language.


If you just have a local string (or data structure), the name must be 
qualified. If /s/ is a string you must either use /@s/ to indicate the 
pointer to the string or /s[n]/ to indicate an element of the string. If 
/b/ is a structure, /b.something/ is valid and/@b/ is valid, but the 
usage of /s/ or /b/ alone is not allowed.


Whenever you're not dealing with local, static data, then you have the 
based construct, which allows to reserve storage for a pointer, and 
describes what the pointer points to, providing both strong type 
checking, and an easy way to dereference when required. Again any 
ambiguity is impossible.


An example of the PLM syntax is:

Declare p pointer;
Declare s based p (256) Byte;
and also, if required,
Declare w based p(128) Word;

I've implemented an extension of FPC to support the based construct, 
which I find very useful, to get rid of the c-style p^something, and to 
make the code more readable and easier to maintain.
However I've never submitted my personal patch, because when I proposed 
it, it didn't rise any interest, and I'm always two steps behind with 
FPC versions


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] replace one field of a record in a collection...

2012-02-02 Thread waldo kitty

On 2/1/2012 17:13, Sven Barth wrote:

Are you storing pointers to records in your collection? If so then just replace
the field's value. The change will then be immediately visible for every other
code part that holds a reference to this record.


thanks for your reply, sven... you've been a big help with your responses to my 
questions...


in answer to your question, yes... the collections are storing pointers to the 
records and the records are also pointers to the data (i think!)... i'm using 
this line to replace the data in the collection with the new data if they are 
not already the same...


PSCRec(aSatCatColl^.At(idx))^.satname^ := asatname;

the data is changing but i'm suspecting that i need to be doing something more 
because with the above line in place, i'm getting a lot of errors like the 
following... i suspect the problem is that the data being replaced is a 
different length that the replacement data?? if i comment out the above line, my 
program runs with no errors at all...



Marked memory at $022847B8 invalid
Wrong signature $1DBA9722 instead of 9F406D83
  $004154DB
  $00415597
  $0042E321
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Heap dump by heaptrc unit
567275 memory blocks allocated : 27238499/28896072
521148 memory blocks freed : 26693877/28221592
46127 unfreed memory blocks : 544622
True heap size : 5439488 (112 used in System startup)
True free heap : 1224336
Should be : 1812768
Call trace for block $014B5778 size 50
  $00406DD1 line 1073 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
  $00407515 line 1135 of satsort32.lpr
  $00413901
  $00413901
Call trace for block $022D63C8 size 13
  $00406DA8 line 1073 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $014D5A68 size 66560
  $00404903 line 760 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
  $F0F0F0F0
  $F0F0F0F0
  $F0F0F0F0
Marked memory at $022847B8 invalid
Wrong signature $1DBA9722 instead of 9F406D83
  $00416367
  $004154DB
  $00415597
  $0042E321
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02284758 size 13
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Marked memory at $022846F8 invalid
Wrong signature $370627AA instead of AD6CB9AE
  $00416367
  $004154DB
  $00415597
  $0042E321
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $022881E0 size 6
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02284698 size 13
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02284638 size 10
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02288190 size 6
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $022845D8 size 13
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02284578 size 11
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02288140 size 6
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02284518 size 13
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Marked memory at $022844B8 invalid
Wrong signature $370627AA instead of 9AB2499C
  $00416367
  $004154DB
  $00415597
  $0042E321
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $022780A8 size 6
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02284458 size 13
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02284398 size 19
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02278058 size 6
  $004048B2 line 759 of satsort32.lpr
  $00406BEE line 1042 of satsort32.lpr
  $0042C774
  $00407515 line 1135 of satsort32.lpr
  $00413901
Call trace for block $02281E78 size 13
  $004048B2 line 759 of 

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-02 Thread Lars
Jorge Aldo G. de F. Junior wrote:
 I would vote for a new function on all stream types to allow writing
 strings in the expected way. Everybody hits that problem once.

I think there is  a class.WriteString function instead of class.Write()

Similar to a DEPRECATED; directive, there could be an UNSAFE; directive
warning the user that he is using untyped pointer or something.

Problem is that adding more things like this to the langage make the
compiler more complex.

In oberon there is a way to mark a module UNSAFE if you are linking to C
code and such.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] How to enable -XX via code?

2012-02-02 Thread silvioprog
Hello,

How to enable -XX (Link Smart) via directive?

Thanks,

-- 
Silvio Clécio

Site - silvioprog.com.br
LazSolutions - code.google.com/p/lazsolutions

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to enable -XX via code?

2012-02-02 Thread Jonas Maebe

On 02 Feb 2012, at 23:18, silvioprog wrote:

 How to enable -XX (Link Smart) via directive?

You can't. That switch is a property of the entire linking process, not of a 
single source file or unit.


Jonas___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] How to enable -XX via code?

2012-02-02 Thread silvioprog
2012/2/2 Jonas Maebe jonas.ma...@elis.ugent.be:

 On 02 Feb 2012, at 23:18, silvioprog wrote:

 How to enable -XX (Link Smart) via directive?

 You can't. That switch is a property of the entire linking process, not of a 
 single source file or unit.

Thank you Jonas! :)

-- 
Silvio Clécio

Site - silvioprog.com.br
LazSolutions - code.google.com/p/lazsolutions

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] make rpm

2012-02-02 Thread Mattias Gaertner
Hi,

When doing make rpm NOGDB=1 NODOCS=1 in fpcbuild/trunk I get a lot
of unpackaged files under OpenSuse 12.1. In other words: it fails to
build.

Are there some docs about it?

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal