Jan Je/lowicki | 2 Dec 11:50 2004
Picon

gtkextra in fpc?

Hello everybody,

are there units available to achieve GTKExtra from Free Pascal?

With regards,

                                       Jan Jelowicki
                                       jasj@...

-------------------------------------------------------------------
Wroclaw University of Agriculture    Akademia Rolnicza we Wroclawiu
Department of Mathematics            Katedra Matematyki
-------------------------------------------------------------------

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

Joseph Hewitt | 2 Dec 18:09 2004
Picon

RE: Freepascal Game Developers

>If there is enough interest, I'm thinking of
>creating/hosting a web site devoted to the development
>of cross-platform games using FreePascal.  This site
>would host game downloads, tutorial, forums, libs,
>community projects, and code contributed by FreePascal
>Gaming Community (you).

I've written several games in FreePascal, all of which are open source. 
Here's a link to my current project, GearHead:

http://www.geocities.com/pyrrho12/programming/gearhead/index.html

GearHead compiles for both Windows and Linux. I expect that it could compile 
on other platforms, but so far nobody has volunteered to test this.

I'd certainly be interested in learning about other FPC game developers. Let 
me know when your site is up and I'll include a link to it on the GearHead 
page.

                                         - JH.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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

(Continue reading)

Den Jean | 3 Dec 03:15 2004
Picon

Error: Can't declare procedure as EXTERNAL

Hi,

the new FPC CVS release of 29/11 forbids
delphi / kylix type of library use

eg 

--------------------------------------------------------------------------------------------------------------
interface

function QObjectList_create: QObjectListH; cdecl; overload;
function QObjectList_create(list: QObjectListH): QObjectListH; cdecl; overload;

implementation

function QObjectList_create(list: QObjectListH): QObjectListH; cdecl; external QtShareName name
QtNamePrefix + 'QObjectList_create2';
function QObjectList_create: QObjectListH; cdecl; external QtShareName name QtNamePrefix + 'QObjectList_create';
--------------------------------------------------------------------------------------------------------------

is forbidden now and generates a "Error: Can't declare procedure as EXTERNAL" when compiling.

Apparently the external directive has to be moved to the INTERFACE section.
I do not know why this has changed (perhaps a very good reason),
but to me it seems not so good:

   1) This is not Delphi/Kylix compatible (just try to compile Qt.pas)

   2) This breaks a lot of existing code, especially bindings ( I will need to move 3283 external directives in
my qte binding) 
(Continue reading)

Michael.VanCanneyt | 2 Dec 21:37 2004
Picon

Re: Error: Can't declare procedure as EXTERNAL


On Thu, 2 Dec 2004, Den Jean wrote:

> Hi,
> 
> the new FPC CVS release of 29/11 forbids
> delphi / kylix type of library use
> 
> eg 
> 
> --------------------------------------------------------------------------------------------------------------
> interface
> 
> function QObjectList_create: QObjectListH; cdecl; overload;
> function QObjectList_create(list: QObjectListH): QObjectListH; cdecl; overload;
> 
> implementation
> 
> function QObjectList_create(list: QObjectListH): QObjectListH; cdecl; external QtShareName name
QtNamePrefix + 'QObjectList_create2';
> function QObjectList_create: QObjectListH; cdecl; external QtShareName name QtNamePrefix + 'QObjectList_create';
> --------------------------------------------------------------------------------------------------------------
> 
> is forbidden now and generates a "Error: Can't declare procedure as EXTERNAL" when compiling.

This is correct.

> 
> Apparently the external directive has to be moved to the INTERFACE section.
> I do not know why this has changed (perhaps a very good reason),
(Continue reading)

Peter Vreman | 2 Dec 21:59 2004

Re: Error: Can't declare procedure as EXTERNAL

>>    2) This breaks a lot of existing code, especially bindings ( I will
>> need to move 3283 external directives in my qte binding)
>
> This is known, but can't be helped.

Simple solution: Put them in an include file. Also the interface
declarations for kylix. For FPC only use the include file with the
externals in the interface and for Kylix use both include files.

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

Michael.VanCanneyt | 2 Dec 22:09 2004
Picon

Re: Error: Can't declare procedure as EXTERNAL


On Thu, 2 Dec 2004, Peter Vreman wrote:

> >>    2) This breaks a lot of existing code, especially bindings ( I will
> >> need to move 3283 external directives in my qte binding)
> >
> > This is known, but can't be helped.
> 
> Simple solution: Put them in an include file. Also the interface
> declarations for kylix. For FPC only use the include file with the
> externals in the interface and for Kylix use both include files.

If you have it in the interface anyway, there is no need to have both files
?

Michael.

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

Florian Klaempfl | 3 Dec 08:45 2004
Picon
Picon

Re: Error: Can't declare procedure as EXTERNAL

Michael.VanCanneyt@... wrote:
>>   1) This is not Delphi/Kylix compatible (just try to compile Qt.pas)
> 
> 
> This is known, but is unfortunately unavoidable. Delphi/Kylix uses an
> internal linker and can therefore solve this problem. FPC has to use an
> external linker, and therefore the assembler label must be fixed already in
> the interface section.  (it has to do with the case when 2 units are using 
> each other)

Can't we allow it with a warning? Only under rare circumstances the late external cause problems afaik.

> 
> 
>>   2) This breaks a lot of existing code, especially bindings ( I will need to move 3283 external directives
in my qte binding) 
> 
> 
> This is known, but can't be helped.

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

Jeff Pohlmeyer | 3 Dec 09:36 2004
Picon

gtkextra in fpc?

> are there units available to achieve GTKExtra from Free Pascal?

There is now...
  http://www.geocities.com/yetanothergeek/gtkextra.pp.gz

.

		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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

Agustin Barto | 3 Dec 17:08 2004
Picon

Parser Generators

I'm looking for a good free (as in speech) parser generator for
FreePascal. Right now I'm working with Coco/R (from
http://www.tetzel.com/CocoR/) and I'm not very pleased with this tool.
The generated code works perfect with fpc-1.9.4 but the (parser)
compiler only works on Windows and I want my project to be as
cross-platform as possible (Even the development tools).

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

Michael Van Canneyt | 3 Dec 17:29 2004
Picon

Re: Parser Generators


On Fri, 3 Dec 2004, Agustin Barto wrote:

> I'm looking for a good free (as in speech) parser generator for
> FreePascal. Right now I'm working with Coco/R (from
> http://www.tetzel.com/CocoR/) and I'm not very pleased with this tool.
> The generated code works perfect with fpc-1.9.4 but the (parser)
> compiler only works on Windows and I want my project to be as
> cross-platform as possible (Even the development tools).

Try tplexyacc.
It's distributed with FPC. sources are in utils/tply

Michael.

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


Gmane