Adriaan:
> > [bluebird:~/now/t] tds% /Developer/Pascal/gpc345u2/bin/gp test.p
> > /usr/bin/ld: can't locate file for: -lSystemStubs
> > collect2: ld returned 1 exit status
>
> That is strange, on Mac OS X 10.4 libSystemStubs.a can be found in
> /usr/lib. But -- maybe they are installed as part of Xcode instead of
> the system software, did you install Xcode 2.x ?
I probably asked for everything when I installed OS X, but I don't
recall. If you tell me exactly where to look and for what I will do
that.
> > .. the ReadMe.rtf that came in the package is not the same
> > /Developer/Pascal/README.rtf
> Oh, I am really sorry you had to read two Readme files.
I'm sorry, my sarcosometer is broken. Are you being sarcastic?
They were not identical. Under Mac OSX case is ignored and when I
moved one into the directory with the other, it was wiped out. So I
reinstalled to check this.
Inside the package:
-rw-rw-r-- 1 root admin 9378 Dec 23 16:56 README.rtf
Outside the package:
-rw-rw-r-- 1 tds staff 9023 Dec 24 12:41 ReadMe.rtf
[bluebird:~/now/a] tds% diff README-inside.txt ReadMe-outside.txt
4c4
< The software package contains the GNU Pascal Compiler (gpc) version 3.4.5u2 for Mac OS X. Note that there are separate packages for
---
> The software package contains the GNU Pascal Compiler (gpc) version 3.4.5u2 for Mac OS X.
6,10c6
< ⢠Mac OS 10.3 native PowerPC compiler
< ⢠Mac OS 10.4 native and cross compilers for PowerPC and Intel
< ⢠Mach-O Intel native and cross compilers for PowerPC and Intel
<
< DISCLAIMER. The Intel version of the software package was composed, built and tested on a standard PC running OpenDarwin8, using tools and software that are freely available on the internet. Due to Apple Non Disclosure Agreement restrictions, I can not reveal if the software actually builds, runs and installs on Intel Macs running Mac OS X 10.4.
---
> This package is for Mac OS X 10.4 PowerPC only.
89c85
< Source code and a building scripts can be downloaded from <http://www.microbizz.nl/gpc.html>.
---
> Source code and building scripts can be downloaded from <http://www.microbizz.nl/gpc.html>.
Tom
Dr. Thomas D. Schneider
National Institutes of Health
National Cancer Institute
Center for Cancer Research Nanobiology Program
Molecular Information Theory Group
Frederick, Maryland 21702-1201
toms(a)ncifcrf.gov
permanent email: toms(a)alum.mit.edu (use only if first address fails)
http://www.ccrnp.ncifcrf.gov/~toms/
Thanks for your reply Chief.
The command:
gpc -print-file-name=crtbegin.o
gives:
crtbegin.o
I also decided to go back to basics. You helped me do some C to Pascal, Pascal to C examples a couple of years ago (http://www.staff.ncl.ac.uk/chris.hicks/programming.htm). These all worked at the time. When I get these sorted I will go back to the XView problem.
I tried one of the Pascal calls C programs that passes a string and that failed with the same error message:
$ make
gpc -o pcallc pcallc.p ccall.o --cstrings-as-strings
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: crtbegin.o: No such file: No such file or directory
make: *** [pcallc] Error 1
Which version of Pascal would you recommend? I looked at http://www.gnu-pascal.de/binary/cygwin/ and found the most recent one in binary is gpc-20041017, based on gcc-3.3.3.
gcc -v on my installation gives:
$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug : (reconfigured)
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
Is gpc compatible with the 3.4.4?
Thanks again for your help.
Chris.
Hi,
I have just reinstalled Cygwin which comes with gpc version 20040516, based upon gcc-3.3.3. The gcc version is 3.4.4. I am assuning that there are OK, because they were provided as binaries that were bundled in the Cygwin install.
I have installed XView ( from xview-3.2p1.4-18c-cygwin.tar.bz2, from http://www.physionet.org/physiotools/xview/) and am trying to write a small example program to illustrate linking a Pascal program to XView. I attach my files (p.p, x_message.c and my Makefile).
When I do a make I get the error message:
$ make
gpc -o test p.p x_message.o -I /usr/openwin/library -Lxview -LX11
p.p:6: warning: missing string capacity -- assuming 255
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: crtbegin.o: No such file: No such file or directory
make: *** [test] Error 1
I would be grateful for some help with this.
Many thanks (and a happy New Year),
Chris.
Adriaan:
I downloaded from
http://www.microbizz.nl/gpc.html
GNU Pascal 3.4.5u2 installer for Mac OS X 10.4 PowerPC (PowerPC native and Intel cross compiler) (16.4 MB)
to my
Max OSX version 10.4.3 Power PC G4
It unpackaged ok and I have now
/Developer/Pascal/
Then I went to /tmp and made:
program tboy(output);
begin
writeln(output,'go to sleep!!');
end.
I tried this:
/Developer/Pascal/gpc345u2/bin/gpc test.p
and got:
[bluebird:~/now/t] tds% /Developer/Pascal/gpc345u2/bin/gpc test.p
/usr/bin/ld: can't locate file for: -lSystemStubs
collect2: ld returned 1 exit status
Then
/Developer/Pascal/gpc345u2/bin/gp test.p
and got
[bluebird:~/now/t] tds% /Developer/Pascal/gpc345u2/bin/gp test.p
/usr/bin/ld: can't locate file for: -lSystemStubs
collect2: ld returned 1 exit status
Hmm. I could not locate simple examples of how to run the compiler.
A small example test directory would help.
Oh, also, the ReadMe.rtf that came in the package is not the same
as
/Developer/Pascal/README.rtf
which is confusing.
Regards,
Tom
Dr. Thomas D. Schneider
National Institutes of Health
National Cancer Institute
Center for Cancer Research Nanobiology Program
Molecular Information Theory Group
Frederick, Maryland 21702-1201
toms(a)ncifcrf.gov
permanent email: toms(a)alum.mit.edu (use only if first address fails)
http://www.ccrnp.ncifcrf.gov/~toms/http://www.uwasa.fi/~ts/http/quote.htmlhttp://en.wikipedia.org/wiki/Top-posting
2
1
Delphi compat
by Prof A Olowofoyeku (The African Chief)
27 Dec '05
27 Dec '05
Hi
The new Delphi 2006 is reported to have a new feature - records with
methods - e.g.,
type
TBlock = record
procedure Foo(I: Integer);
function Bar: TBlock;
private
Data: Integer;
public
property Color: Integer
end;
It also has something called static fields (for Classes), declared with
"class var" (e.g., "class var foo : integer"). These are fields that
belong to the type, rather than to any of its instances.
I am not sure why either of these new features is necessary or useful,
but perhaps they should be borne in mind with respect to Delphi
compatibility (or perhaps not).
Best regards, The Chief
--------
Prof. Abimbola A. Olowofoyeku (The African Chief)
web: http://www.greatchief.plus.com/
Updated GPC binary installers, sources, patches, building instructions
and building scripts for Mac OS X can be downloaded from
<http://www.microbizz.nl/gpc.html>.
Included are
• a native Mach-O PowerPC compiler
• a cross compiler running on Mach-O PowerPC for Mach-O Intel
• a cross compiler running on Mach-O Intel for Mach-O PowerPC
• a native Mach-O Intel compiler
Special thanks to Waldek Hebisch for his help in getting a stable
Mach-O Intel compiler.
I wish you all a merry Christmas and a happy New Year !
Adriaan van Os
Brian Wichmann wrote:
> gpc --classic-pascal CONF001.PAS
> /usr/bin/ld: CONF001.PAS bad magic number (not a Mach-O file)
> collect2: ld returned 1 exit status
> [Brian-Wichmanns-Computer:P8/gnupascal/CONFORM] brianwic% gpc
> CONF001.PAS
> /usr/bin/ld: CONF001.PAS bad magic number (not a Mach-O file)
> collect2: ld returned 1 exit status
> [Brian-Wichmanns-Computer:P8/gnupascal/CONFORM] brianwic%
>
> The test is attached.
>
> I have no idea what this is about!!
>
By default gpc uses file extension to decide what to do with the input
file: .PAS is _not_ recognized as Pascal extension (.pas is).
Files with unrecognized extension are passed to the linker (which then
complains about magic number). So either rename the input files to use
.pas or .p extension or add explicit option:
gpc -x Pascal --classic-pascal CONF001.PAS
should work.
--
Waldek Hebisch
hebisch(a)math.uni.wroc.pl
Dear developers:
I have a copy of the validation suite for Pascal written years ago by
Arthur Sale and myself.
Has this been run on GNU Pascal? If not, I would be happy to do this.
Brian Wichmann ex-convenor (ISO) for Pascal
Hi all,
That time of year is coming up again. It is soon time for Pascal Game
Development's annual competition and with that, I am pleased to announce
that on Jan 15th, 2006 the 2006 PGD Annual Game Programming Competition
shall commence!
The competition rules shall be released on the morning(GMT) before the
start of the competition.
We will be allowing teams or individuals much like we did last year.
Releasing your source will be optional however you will be required to
submit a packaged executable with all game files for the targeted
platform(s) supported.
Prizes, judges, rules and all further needed information will be posted
within a weeks time before the start date of competition. For now, I
suggest gathering your teams, tools and ideas for Jan 15th. Contest will
be running for a total of 16 weeks, ending on the May 7th where we will
award the 1st, 2nd and 3rd place winners with their prizes. We will also
be honouring those in the competition that show great ability in
specific areas of development.
We have high hopes for a fun competition and it should be a very
successful event for 2006. Stay posted for further information as it comes.
This year's excellent winning entries and prizes can be viewed @
http://www.pascalgamedevelopment.com/competitions/PGDCompetition2005.html
We look forward to seeing you or vistors from your site there.
Dominique.
My problem:
I want to open a serial device in a GP-Program to read and write
to it in changing order.
I look for a way that allowes to do (non blocking) read AND write
to one single file-variable assigned to eg /dev/ttySx.
So far I have found the "CanRead-function" in the manual which
serves perfect for the non blocking job!
But still I have to use two file-variables, one opened with
reset, one opened with rewrite, and both symbolically linked to
the desired serial file eg. /dev/ttySx.
And it works, reading from the first when "CanRead" is true and
writing to the latter whenever it is necessary.
Having read almost all portions of the GNU Pascal Manual
nevertheless could not find a solution to use only one
file-variable.
What is behind it? I do have an awful lot of programs from old
TP3-times doing exactly that using "aux" and a home made
"CanRead" equivalent.
I dare to ask and will even be full of thanks if I get just the
answer "rtfm, THERE"
Thanks to all who keep the GPC working,
Mathias Uhle
PS.: To keep this mail short I just add: a wonderful Compiler,
great!
--
Univ.-Prof. Dr.-Ing. Mathias Uhle, Messtechnik, Universitaet
Dortmund
Leonhard Euler Str. 5, D-44221 Dortmund
Tel: +49.231.755.3257 Fax: +49.231.755.2631
email: uhle(a)mt.mb.uni-dortmund.de
http://www.mt.mb.uni-dortmund.de