Re: [fpc-pascal] missing functions in libc

2008-08-22 Thread Michael Van Canneyt
On Fri, 22 Aug 2008, Marc Santhoff wrote: Hi, I'm trying to compile LPTK 0.9.0 on FreeBSD 4 using a working fpc 2.0.4. I use this compiler for a long time now and never had the symptoms as following: At first the compiler does not find librt and libdl. I know these exist only on Linux

Re: [fpc-pascal] missing functions in libc

2008-08-22 Thread Marco van de Voort
In our previous episode, Marc Santhoff said: At first the compiler does not find librt and libdl. I know these exist only on Linux and don't know, why they are tried to be pulled in. libdl is mostly uses for dynamically loading dynamic libraries. Probably that packages declares its own

Re: [fpc-pascal] [Linux] Accessing Shared Libraries in *Current* Binary Directory

2008-08-22 Thread Alan Krause
Tom, In the bash shell, type in: export LD_LIBRARY_PATH=. This appends the current directory to the library search path, so if you cd to the app's directory before executing it, you will be good to go. You could also write a bash script to perform these steps automatically for you, as I know

Re: [fpc-pascal] Documentation bug

2008-08-22 Thread leledumbo
Thomas Schatzl wrote: Use fpc -i to query the available optimization options. I know that, but what I need is an explanation about what each optimization does. Plus, what are the defaults? -- View this message in context: http://www.nabble.com/Documentation-bug-tp19066821p19103435.html

[fpc-pascal] problems posting data with synapse to identi.ca

2008-08-22 Thread Tobias Diekershoff
Hello everybody! I try to write a little program to interact with identi.ca and struggle with sending a new message. The (better then nothing)API says [1] - Login You have to have a valid login cookie to post. To get one, send an HTTP POST to http://identi.ca/main/login

Re: [fpc-pascal] problems posting data with synapse to identi.ca

2008-08-22 Thread Tobias Diekershoff
On Fri, 22 Aug 2008 14:59:45 +0200 Tobias Diekershoff [EMAIL PROTECTED] wrote: As I implemented fetching a timeline with synapse, It would be nice if anybody coud give me a hint with this. I've tried HttpPostURL, but the result is not very promising (i.e. false), which could be because this

[fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Tom Verhoeff
I have an application (for optimizing decisions in the dice game Yahtzee) that uses Real and runs well with FPC on Mac OS X (PPC), but that fails with a Floating Point Exception (FPE) under Windows (FPC 2.2.0). What makes things complicated, is that the program has a GUI through Lazarus, and that

Re: [fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Marco van de Voort
In our previous episode, Tom Verhoeff said: This means that the if statement is passed 7 times without problem with x = -1, and on the 8th pass, where x = -1 again, it bails out with an FPE. Hmm, didn't the x87 copro stack had 7ish registers? And recursive you say? :-)

Re: [fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Marco van de Voort
In our previous episode, Tom Verhoeff said: What makes things complicated, is that the program has a GUI through Lazarus, and that it is rather biggish, making it difficult to isolate the problem. The place where it complains is a simple statement Sorry, forgot to mention a test/remedy if

Re: [fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Vinzent Höfler
Marco van de Voort wrote: In our previous episode, Tom Verhoeff said: This means that the if statement is passed 7 times without problem with x = -1, and on the 8th pass, where x = -1 again, it bails out with an FPE. Hmm, didn't the x87 copro stack had 7ish registers? And recursive you say?

Re: [fpc-pascal] missing functions in libc

2008-08-22 Thread Marc Santhoff
Am Freitag, den 22.08.2008, 08:56 +0200 schrieb Marco van de Voort: In our previous episode, Marc Santhoff said: [...] What going on here? How can I repair it? Eliminate use of the libc unit, using mostly baseunix, dynlibs and the like (the above url has a longer list). Replace -64

[fpc-pascal] Widestrings manager ?

2008-08-22 Thread Steve Howe
Hello all, I have a console application (web server) which prints this message at the console: This binary has no widestrings support compiled in. Recompile the application with a widestrings-manager in the program uses clause. I found no references to that on the documentation - the