Jeff Pohlmeyer wrote:
function to read the local IP eth0/eth1 using glibc library.
This one is a little cleaner...
program ip_addr;
{$MODE OBJFPC}
uses libc;
It doesn't seem like you're using libc specific functions ? You can also
write a fpc 'native' one using fpsocket and fpioctl in
Hello,
I have a silly question : which is the best way to uninstall FPC ? I
have used
the 2.0.4 tarball (Linux) and the install script included within. I
chose to install
it in /usr/local.
Now, I need to compile from sources (so debug some problems with sqldb)
and i want to make sure that
I have a silly question : which is the best way to uninstall FPC ? I
have used
the 2.0.4 tarball (Linux) and the install script included within. I
chose to install
it in /usr/local.
No automatic way. Maybe the script should keep a filelist of what it
installs somehow.
Everything sqldb
Many Thanks Jeff and Micha.
This function works perfectly without need to regex ifconfig... And i
use glibc
I develop only on linux system.
Great respects...
Just another question... (this because i came from Windows OS) how can i
list wich interface loaded without need to parse
This function works perfectly without need to regex ifconfig... And i
use glibc
I develop only on linux system.
Note that it is linux/x86 only. No 64-bit, or other platforms.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
Oh, I forgot to mention. If the ObjectStates match, the test passes
fine, and doesn't give an access violation.
While creating the new AssertEquals method, I purposefully created a
failure with then gives the access violation, instead to the
comparison message I expected:
Failing on 1:
Graeme Geldenhuys schreef:
Oh, I forgot to mention. If the ObjectStates match, the test passes
fine, and doesn't give an access violation.
While creating the new AssertEquals method, I purposefully created a
failure with then gives the access violation, instead to the
comparison message I
Dear
I would like to use some units developped from delphi/klyx with Lazarus
IDE On Linux.
It seems that there is some differences between delphi/freepascal
especially for longstring conversion.
Many times, i received this compilator error :
For example by using the LibTar.pas
TOUZEAU DAVID schreef:
Dear
I would like to use some units developped from delphi/klyx with Lazarus
IDE On Linux.
It seems that there is some differences between delphi/freepascal
especially for longstring conversion.
Many times, i received this compilator error :
For example by using
Although fpc has a regexpr unit:
http://svn.freepascal.org/svn/fpc/trunk/packages/base/regexpr/regexpr.pp
It has many todos, such as adding support for | in the search expression.
So this
unit doesn't have enough functionality.
While '|' support is to be considered basic regex
Here is the backtrace. I removed all other Assert tests, so only the
one that causes the problem is executed.
What is strange though, is that I created a new test that only creates
the object and then tests the ObjectState. It it works, but all the
other actual tests don't. I hate such
Many thanks Vincent
the {$mode delphi} is a good way...
Vincent Snijders a écrit :
TOUZEAU DAVID schreef:
Dear
I would like to use some units developped from delphi/klyx with
Lazarus IDE On Linux.
It seems that there is some differences between delphi/freepascal
especially for longstring
how can i list wich interface loaded without
need to parse /etc/networks/...?
I would parse /proc/net/dev instead
program ifnames;
var
s:shortstring;
f:text;
p:LongInt;
begin
assign(f,'/proc/net/dev');
reset(f);
while not eof(f) do begin
readln(f,s);
p:=pos(':',s);
if ( p
I would parse /proc/net/dev instead
Better, but still Linux only. For a good solution, a resolver unit that
accesses libc should be written that is portable (unlike the libc unit)
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
Many Thanks for this way jeff...
/proc/net/dev is more compatible
Impressed it
for your information.
My program will run only on linux system...
Marco van de Voort a écrit :
I would parse /proc/net/dev instead
Better, but still Linux only. For a good solution, a resolver unit that
Basic seems to be: |()?*+ (non-UNICODE) support (from wikipedia).
| is not basic afaik. From re_format BSD Manpage:
Obsolete (``basic'') regular expressions differ in several respects. `|'
is an ordinary character and there is no equivalent for its functional-
ity. `+' and
Better, but still Linux only. For a good solution,
a resolver unit that accesses libc should be
written that is portable (unlike the libc unit)
If I understood correctly, the OP had two questions:
1. Retrieve a list of interface names on a *linux* system.
2. Return the IP address for a given
Then there is also synregexpr.pas:
http://svn.freepascal.org/svn/lazarus/trunk/components/synedit/synregexpr.pas
But that is not distrubuted with fpc. And I don't know, if the license is
open
source. Is it looks likes a BSD derivative, but item 3, about income, doesn't
seem
to fit in.
Пётр Косаревский schreef:
Then there is also synregexpr.pas:
http://svn.freepascal.org/svn/lazarus/trunk/components/synedit/synregexpr.pas
But that is not distrubuted with fpc. And I don't know, if the license is open
source. Is it looks likes a BSD derivative, but item 3, about income, doesn't
I have these two functions in my .bashrc file. You only need to run
ii for the cool output. Now back to the question - If it is for
linux only, why not just use the /sbin/ifconfig output. After all, it
is accurate and seem much easier than all those libc/library methods.
I pull the IPs and
Better, but still Linux only. For a good solution,
a resolver unit that accesses libc should be
written that is portable (unlike the libc unit)
If I understood correctly, the OP had two questions:
1. Retrieve a list of interface names on a *linux* system.
2. Return the IP address for
On Friday 06 October 2006 10:49, Adrian Maier wrote:
I have a silly question : which is the best way to uninstall FPC ?
I don't know.
Also, after compiling FPC with 'make build' , if i execute 'make
install' will it
copy everyting in /usr/local by default ? Is the destination
Many thanks to the community
To reply to Graeme :
why not just use the /sbin/ifconfig output ?
Simply to be more dev compliance... using an external program is slower
and sometime ifconfig doesn't exist or is deleted on target computers.
To reply to Marco :
And the only good solution is a
Dear
is anybody there use visualserver from VisualSynapse
(http://visualsynapse.sourceforge.net/?id=8) and impleted it on Linux
has a console mode...??
Examples given is only on application interface ...
Problems:
1) When the application start, no web page are generated...
2) i would like
Downloaded fpc 2.0.4 yesterday and I am trying to compile a legacy CW Pro 2 app
on Mac 10.4.8 with Xcode 2.4.
I am getting undefined symbols THREADVARLIST_FVCOMMON
THREADVARLIST_MEMORY when trying to link, and I have no clue how to get past
this problem. I searched my hard drive and found them
Am Donnerstag, den 05.10.2006, 22:19 -0500 schrieb Jeff Pohlmeyer:
Errm, I actually forgot the obvious questions:
What's wrong here? How can I get around it?
cat input.h | awk '{gsub(/\__int64\/, long long ); print}' output.h
- should work, at least on Linux x86
That has done the
Hi, does anyone know how to install freepascal mysql component to kylix 3
open edition? Or is there any database component that can be use with
kylix 3 open edition?
Thx b4.
=
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
27 matches
Mail list logo