Discussion:
gpctypes.h
(too old to reply)
Louie
2007-05-27 22:46:59 UTC
Permalink
Hello!

I'm new in this group, and it's been a while since the last time I
tried Pascal...

Anyway, I'm trying to compile a C object requiring gpctypes.h; I need
the object to compile a gpc program. I'd like to know if it is
available somewhere on the web...

Thanks in advance,

Louie.
CBFalconer
2007-05-28 01:46:27 UTC
Permalink
Post by Louie
I'm new in this group, and it's been a while since the last time
I tried Pascal...
Anyway, I'm trying to compile a C object requiring gpctypes.h; I
need the object to compile a gpc program. I'd like to know if it
is available somewhere on the web...
You can get gpc from <http://***@gnu.de>. By default, it compiles
gnu Pascal, but can be set to compile standard to either ISO 7185
or ISO 10206.
--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net
--
Posted via a free Usenet account from http://www.teranews.com
Waldek Hebisch
2007-05-28 13:50:25 UTC
Permalink
Post by Louie
Hello!
I'm new in this group, and it's been a while since the last time I
tried Pascal...
Anyway, I'm trying to compile a C object requiring gpctypes.h; I need
the object to compile a gpc program. I'd like to know if it is
available somewhere on the web...
If C source requires 'gpctypes.h' then 'gpctypes.h' should be considered
part of C source -- if you miss it the source you get is incomplete.

You should first ask provider of C source about 'gpctypes.h'. If
that fails you will have to re-create 'gpctypes.h', but that depends
on C source: we can not just guess what C source expects.
--
Waldek Hebisch
***@math.uni.wroc.pl
Louie
2007-05-28 21:54:39 UTC
Permalink
Post by Waldek Hebisch
If C source requires 'gpctypes.h' then 'gpctypes.h' should be considered
part of C source -- if you miss it the source you get is incomplete.
You should first ask provider of C source about 'gpctypes.h'. If
that fails you will have to re-create 'gpctypes.h', but that depends
on C source: we can not just guess what C source expects.
I was afraid that something like this would happen...

What about compiling the GPCtypes.pas distributed with GPC and then
making a call from within GCC? Has anyone tried to include Pascal
libraries into GCC programs?

Thanks for your patience...

Luis.
Waldek Hebisch
2007-05-29 01:22:34 UTC
Permalink
Post by Louie
Post by Waldek Hebisch
If C source requires 'gpctypes.h' then 'gpctypes.h' should be considered
part of C source -- if you miss it the source you get is incomplete.
You should first ask provider of C source about 'gpctypes.h'. If
that fails you will have to re-create 'gpctypes.h', but that depends
on C source: we can not just guess what C source expects.
I was afraid that something like this would happen...
What about compiling the GPCtypes.pas distributed with GPC and then
I do not see GPCtypes.pas in my GPC installation.
Post by Louie
making a call from within GCC? Has anyone tried to include Pascal
libraries into GCC programs?
Sure. GPC has very simple mapping between C and Pascal types. But
the catch is that both in C and in Pascal you may define your own
types. Translating type definitions between C and Pascal is not
hard. However, since neither C compiler can can read Pascal nor Pascal
compiler can read C one has to do translation by hand (or use
some extra tool, but I can not recommend any).

GPC distribution contains an example (gpc_c_c.c + corresponding
Pascal files) of linking Pascal routines to C.
--
Waldek Hebisch
***@math.uni.wroc.pl
Loading...