Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2004-02

Small technical answers

11 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

When it'll be possible to call functions written in C, which were compiled using GCC 3.x? And also, when FPC will be distributed with version 3.x of GNU utilities?

Note: I'm not subscribed to mailing list, so please send me a copy of answer at

Thanks!

Reply by email

Unknown author
to Unknown author

From:
To:
Subject: [fpc-devel]Small technical answers
Date sent: Sat, 21 Feb 2004 20:47:34 +0100

When it'll be possible to call functions written in C, which were compiled using GCC 3.x? And also, when FPC will be

This should be perfectly possible for functions written in C (not C++!), IMHO - unless GCC 3.x is very different from 2.x regarding calling conventions, which I doubt. Have you tried it? If you're talking about C++, that's a different story - this feature is planned, but without a fixed date yet.

distributed with version 3.x of GNU utilities?

Do you have any special reason why you'd need to use this version? Changing to a newer version of GNU utilities is usually matter of time and testing of the new version on every platform. For some platforms (like Linux etc.) these are probably used already, because these utilities are installed by default on these platforms. However, FPC has slightly different needs than GCC, so the older version might be perfectly useable for FPC although it might be outdated for GCC.

Regards

Tomas

VOLNY klub: Modemisti vseho druhu, spojte se! http://klub.volny.cz

Reply by email

Florian Klaempfl
to Unknown author
Show quoted text 16 lines
From: To: Subject: [fpc-devel]Small technical answers Date sent: Sat, 21 Feb 2004 20:47:34 +0100 >When it'll be possible to call functions written in C, >which were >compiled using GCC 3.x? And also, when FPC will be This should be perfectly possible for functions written in C (not C++!), IMHO - unless GCC 3.x is very different from 2.x regarding calling conventions, which I doubt. Have you tried it? If you're talking about C++, that's a different story - this feature is planned, but without a fixed date yet.

It's no problem to call C code compiled by gcc 3.x.

>distributed with >version 3.x of GNU utilities?

What do you mean with GNU utilities?

Reply by email

Unknown author
to Florian Klaempfl

From: Florian Klaempfl
To:
Subject: Re: GCC 3.x and GNU utilities 3.x (Was: [fpc-devel]Small technical answers)
Send reply to:

Date sent: Mon, 23 Feb 2004 21:07:57 +0100

Show quoted text 16 lines
>>When it'll be possible to call functions written in C, >>which were >>compiled using GCC 3.x? And also, when FPC will be > > This should be perfectly possible for functions written in C (not > C++!), IMHO - unless GCC 3.x is very different from 2.x regarding > calling conventions, which I doubt. Have you tried it? If you're > talking about C++, that's a different story - this feature is > planned, but without a fixed date yet. It's no problem to call C code compiled by gcc 3.x. >>distributed with >>version 3.x of GNU utilities? What do you mean with GNU utilities?

I shouldn't have probably deleted the original note that the person asking the question wasn't subscribed so he wanted a Cc: to ;-) I've forwarded him your e-mail now.

Tomas

Reply by email

Gecko
to Unknown author
Florian Klaempfl wrote 23 lines
(...) >>>When it'll be possible to call functions written in C, >>>which were >>>compiled using GCC 3.x? And also, when FPC will be >>> >>> >>This should be perfectly possible for functions written in C (not >>C++!), IMHO - unless GCC 3.x is very different from 2.x regarding >>calling conventions, which I doubt. Have you tried it? If you're >>talking about C++, that's a different story - this feature is >>planned, but without a fixed date yet. >> >> >It's no problem to call C code compiled by gcc 3.x. > > > >>>distributed with >>>version 3.x of GNU utilities? >>> >>>

I wrote incorrect information - version 3.x of GNU utilities probably doesn't exist!!! When I was writing this, I was thinking about one of the latest version.

>What do you mean with GNU utilities? > >

In DOS, Windows and OS/2 distributions these utilities are in asld*.zip file (assembler, linker, etc.).

Sorry for late answer.

Note: all answers please send at , becouse I'm not subscribed to this mailing list.

Maciej

Reply by email

Unknown author
to Gecko

From: "Gecko"
To:
Subject: Re: Re: GCC 3.x and GNU utilities 3.x (Was: Date sent: Mon, 01 Mar 2004 18:43:34 +0100

Show quoted text 9 lines
>>>>distributed with >>>>version 3.x of GNU utilities? >>>> >>>> I wrote incorrect information - version 3.x of GNU utilities probably doesn't exist!!! When I was writing this, I was thinking about one of the latest version.

.
.

Note: all answers please send at , becouse I'm not subscribed to this mailing list.

Sorry, I don't really understand your question. Do you have any particular version in mind? Or do you have a particular problem which might be solved with one of the later versions? Understanding your problem would probably help us to answer you more precisely, or even solve the problem.

Regards

Tomas

ANONYMNI PRIPOJENI K INTERNETU - bez registrace, zdarma, ihned! Pripojeni na cisle 971 200 111 z cele CR, v Praze navic na cisle 971 200 555. Uzivatelske jmeno "volny", heslo "volny". http://sluzby.volny.cz/product/dialup/anon/

Reply by email

Gecko
to Unknown author
Show quoted text 18 lines
>>>>>distributed with >>>>>version 3.x of GNU utilities? >>>>> >>>>> >>>>> >[...]I was >thinking about one of >the latest versions. > . . Sorry, I don't really understand your question. Do you have any particular version in mind? Or do you have a particular problem which might be solved with one of the later versions? Understanding your problem would probably help us to answer you more precisely, or even solve the problem.

No, I don't have any problem with version, with is currently distributed with FPC. But IMHO the latest version is usually better (fixed bugs, new features, etc.). Really, I was thinking about version 2.14 (not 2.1.4!)
- as I know, It's the latest version of GNU utlis. But I think, that I got answer for this question:

"[..]FPC has slightly different needs than GCC, so the older version might be perfectly useable for FPC although it might be outdated for GCC."

I understand, that currently distributed version has everything, what FPC needs, and newer version won't change anything. Am I right?

Note: all answers please send at .

Regards

Maciej

Reply by email

Peter Vreman
to Gecko
Show quoted text 30 lines
>>>>>>distributed with >>>>>>version 3.x of GNU utilities? >>>>>> >>>>>> >>>>>> >>[...]I was >>thinking about one of >>the latest versions. >> > . > . > >Sorry, I don't really understand your question. Do you have any >particular version in mind? Or do you have a particular problem >which might be solved with one of the later versions? >Understanding your problem would probably help us to answer you >more precisely, or even solve the problem. > No, I don't have any problem with version, with is currently distributed with FPC. But IMHO the latest version is usually better (fixed bugs, new features, etc.). Really, I was thinking about version 2.14 (not 2.1.4!) - as I know, It's the latest version of GNU utlis. But I think, that I got answer for this question: "[..]FPC has slightly different needs than GCC, so the older version might be perfectly useable for FPC although it might be outdated for GCC." I understand, that currently distributed version has everything, what FPC needs, and newer version won't change anything. Am I right?

Yes, another issue is that building GNU binutils for go32v2 (djgpp) and win32 (mingw32) is most of the time not working out-of-the-box. So unless we really need to migrate to newer versions we don't spend any time on building them.

Reply by email

Gecko
to Peter Vreman
Show quoted text 39 lines
>>>>>>>distributed with >>>>>>>version 3.x of GNU utilities? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>[...]I was >>>thinking about one of >>>the latest versions. >>> >>> >>. >>. >> >>Sorry, I don't really understand your question. Do you have any >>particular version in mind? Or do you have a particular problem >>which might be solved with one of the later versions? >>Understanding your problem would probably help us to answer you >>more precisely, or even solve the problem. >> >> >No, I don't have any problem with version, with is currently distributed >with FPC. But IMHO the latest version is usually better (fixed bugs, new >features, etc.). Really, I was thinking about version 2.14 (not 2.1.4!) >- as I know, It's the latest version of GNU utlis. But I think, that I >got answer for this question: > >"[..]FPC has slightly different needs than GCC, so the older version >might be perfectly useable for FPC although it might be outdated for GCC." > >I understand, that currently distributed version has everything, what >FPC needs, and newer version won't change anything. Am I right? > Yes, another issue is that building GNU binutils for go32v2 (djgpp) and win32 (mingw32) is most of the time not working out-of-the-box. So unless we really need to migrate to newer versions we don't spend any time on building them.

Ok, I think that it's a good time to end this discussion, so thanks for all answers.

Regards

Maciej

Reply by email

Gerardo Rozán Arredondo
to Peter Vreman: Yes, another issue is that building GNU binutils for go32v2 (djgpp) and win32 (mingw32)…

I have problems with Xforms. The xyplot widget seems not to run well in pascal.

When I use the function

fl_set_xyplot_data(..., ..., ...,);

my program crashes, and the error message is something like

"invalid float point operation"

Does somedy knows about this bug of xforms in fpc?

What can I do to fix it?

Gerardo. :O)

+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz

Reply by email

Unknown author
to Gerardo Rozán Arredondo
"Gerardo Roz?n Arredondo" wrote 12 lines
I have problems with Xforms. The xyplot widget seems not to run well in pascal. When I use the function fl_set_xyplot_data(..., ..., ...,); my program crashes, and the error message is something like "invalid float point operation" Does somedy knows about this bug of xforms in fpc?

Unfortunately not. I must say that XForms is no longer maintained, though. You would be better off using GTK or so.

Michael.

Reply by email