HDTenEightyP/NetNews huggingface dataset:
From: wild@nessie.cs.id.ethz.ch (Markus Wild)
Subject: Re: GCC 2.0 C++ Linking problems
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Sat, 11 Apr 1992 17:15:20 GMT

In article <1992Apr9.235049.8058@newshub.ccs.yorku.ca> wlanders@nexus.yorku.ca (W L Anderson) writes:
>I've finally got GNU C 2.0 install correctly, and it seems to be running my
>first C++ program though the preprocessor, compiler and assembler correctly,
>but I have a problem when it tries to link.  Here is the output of my compile:
>
>1.work:projects> cat try.cc
>#include <stream.h>
> 
>main()
>{
>	cout << "Hello World from GNU C++ 2.0\n";
>}
>1.work:projects> gcc try.cc -lg++ -v
>,,,,
>gcc:lib//libg++.a(iostream.o): Undefined symbol ___sF referenced from text segm

You're using the old libc.a library, that used a different stdio implementation
than what libg++-2.0 is expecting. Upgrade.

-Markus
-- 
Markus M. Wild    -  wild@nessie.cs.id.ethz.ch  |  wild@amiga.physik.unizh.ch 
Q: How many IBM cpu's does it take to do a logical right shift?
A: 33.  1 to hold the bits and 32 to push the register.
From: slvj6@cc.usu.edu
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Turbo Pascal 
Date: 14 Apr 92 13:56:21 MDT
Organization: Utah State University

In article <Thomas_Spuhler.04hy@augs2.UUCP>, Thomas_Spuhler@augs2.UUCP (Thomas Spuhler) writes:
> Does anybody know a Turbo Pascal Compiler for Amiga (PD or what ever)???

HighSoft has released one called High Speed Pascal (If I remember right).
I've seen the compiler and manuals but I haven't used it myself.
But from what I saw it looks really good.

A couple friends of mine that used it said it was great.

It is very compatible with Turbo with the following exceptions:

   Processor dependent code (Big vs Little endian processor)
   Object extensions are not supported
   OS differences
   Follows the standard where Turbo deviates in several places


The editor/compiler/debugger setup looked real good and much like Turbo...
only AmigaTised.

It's supposed to compiler around 20,000 lines / min on a 68000 if I remember
right.  Not too shabby!
The debugger looked like one of the better ones I've seen too.

It's around $130-$150 US Funds.


James

Newsgroups: comp.sys.amiga.programmer
From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
Subject: Re: Multiple Window's messages....
Organization: Jet Propulsion Laboratory
Date: Wed, 15 Apr 1992 16:35:50 GMT

In article <92105.152036MRC113@psuvm.psu.edu> Mike Cramer <MRC113@psuvm.psu.edu> writes:
>  Ok...I am writing a program that will open one Control window, and up to
>four other windows. I will be getting IDCMP messages from the Control window
>(such as CLOSEWINDOW) and IF another window has been opened I want to recieve
>messages from it (such as REFRESHWINDOW). How would I construct a Wait()
>so that it will wait for messages from any open windows? Is there some way
>to combine all the messages into one and still figure out which window each
>came from? Thanks for the help....
>
	If the windows are begun from the same process - then yes it is
possible. This is because each window will have a unique UserPort. Each 
UserPort will cause a particular signal bit to be set whenever a message
arrives. By combining these signal bits you can effectively get woken up
whenever a message is sent to any one of the window UserPorts. Wait()
returns a mask of the signal bits that were set and so you could AND this
with the particular signal bit of the UserPort to determine if a message
had been sent to it. Of course, once determing this you would have to get 
all the messages since there is not a one to one correspondance between 
messages and signals.

jeff
From: jhawes@everest.srd.bt.co.uk (Jason Hawes)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Amos new version.
Date: 14 Apr 92 08:00:54 GMT
Reply-To: jhawes@everest.srd.bt.co.uk
Organization: British Telecom

From article , by cuajg@uxa.ecn.bgu.edu (Arthur Gramlich):
> Hey everyone. I was just reading Amiga Shopper's amos column. They
> mentioned amos 2.0 in an article about Easy Amos. Does anyone have any
> more information on this yet ?

Easy Amos has been mentioned in Amiga Format (I think) as being a new Amos
package amined a begginer programmers, (hence the easy).
But I dont know if it will be a new version as well.

> Another thing mentioned is a PC version of Amos/Stos. Though it can't be
> as powerful, this sounds like a great way to write programs across 3
> platfroms. Anyone know anything else about this either?

Hmmm you meen my 7Mhz Amiga will finaly be prooved to out run my friends
16Mhz 386 ???
From: andrey@cco.caltech.edu (Andre T. Yew)
Newsgroups: comp.sys.amiga.programmer
Subject: Looking for eprommer version 2
Date: 17 Apr 92 00:26:08 GMT
Organization: California Institute of Technology, Pasadena


	There used to be an eprommer version 2 file on ab20.
It doesn't seem to there anymore, can anybody tell me
where I can find a copy?  This was the version that
was written in C, instead of BASIC.  Thanks.

(I checked FILES.Z already -- it's not there.)

--Andre

-- 
Andre Yew                             andrey@tybalt.caltech.edu (131.215.48.100)
From: wild@nessie.cs.id.ethz.ch (Markus Wild)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: gcc precompiled headers?  (Am I asking too much?)
Date: 11 Apr 92 17:06:14 GMT
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH

In article <1992Apr6.155430.666@beaver.cs.washington.edu> dylan@cs.washington.edu (Dylan McNamee) writes:
>In SAS/Aztec, there's a precompiled header option which really speeds things
>up--is there a way to do this (or fake it?) in gcc?  All I can think of is
>to create a .h file, run cpp over it, and strip the whitespace...is there
>a better way?

There was a way in the Unix version to do `precompiled headers', it's a pretty
nasty approach though, the compiler just dumped itself to a file, and later
you'd use a #pragma to restore the last contents of such a dump. Needless
to say that this is not feasible in AmigaDOS...

>Also, has anyone come up with a reasonable way to include the Amiga headers
>into g++?  I can get some of them, but if I try to include, say all_protos.h,
>I get an error.  Are we supposed to be extern "C" {...} including them?

You need an extern "C" { } for them, right. But then, due to the parser g++
uses, there's another problem, you can't get function pointers as arguments
thru without a typedef, so you have to change for example in exec.h the normal
inline definition of MakeLibrary() into something like:

typedef void (*__ie_fp)();
typedef struct Library *(*__ie_lfp)();                                         
__inline static struct Library * 
MakeLibrary(BASE_PAR_DECL __ie_fp *funcInit, short* structInit, 
	    __ie_lfp libInit, long dataSize, struct MemList* codeSize)
{...

Other than that, there should be no problems...

-Markus



-- 
Markus M. Wild    -  wild@nessie.cs.id.ethz.ch  |  wild@amiga.physik.unizh.ch 
Q: How many IBM cpu's does it take to do a logical right shift?
A: 33.  1 to hold the bits and 32 to push the register.
Newsgroups: comp.sys.amiga.programmer
From: Stefan Berg <sgberg@peach.ucs.indiana.edu>
Subject: What is the MC68332?
Organization: Computer Science, Indiana University
Date: Wed, 8 Apr 1992 00:04:00 -0500

I just purchased Devpac 3 and it supports a processor know as the
MC68332. What kind of processor is this? What does it do?

Other chips supported by this assembler are:
MC68000
MC68008   (is the instructions set of this chip identical to MC68000?)
MC68010
MC68020
MC68030
MC68040
MC68332  (what is this? see above...)
MC68832  (Is this a typo or another new chip?)
CPU32    (What the heck is this?)
MC68881
MC68882
MC68851

Thanks for any responses,

Stefan

-- 
,----------------------------------------------------------------------------,
| Internet  - sgberg@ucs.indiana.edu             //           Stefan G. Berg |
| NeXT Mail - sgberg@arapahoe.ucs.indiana.edu  \X/ AMIGA  Indiana University |
| Bitnet    - sgberg@iubacs                   Undergraduate Computer Science |
`----------------------------------------------------------------------------'
From: rkimball@athena.qualcomm.com (Robert Kimball)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: What is the MC68332?
Date: 8 Apr 92 17:24:18 GMT
Organization: Qualcomm, Inc., San Diego, CA

sgberg@peach.ucs.indiana.edu (Stefan Berg) writes:

>I just purchased Devpac 3 and it supports a processor know as the
>MC68332. What kind of processor is this? What does it do?

>Other chips supported by this assembler are:
>MC68000
>MC68008   (is the instructions set of this chip identical to MC68000?)
>MC68010
>MC68020
>MC68030
>MC68040
>MC68332  (what is this? see above...)
>MC68832  (Is this a typo or another new chip?)
>CPU32    (What the heck is this?)
>MC68881
>MC68882
>MC68851

>Thanks for any responses,

>Stefan

Motorola makes many microcontrollers based on the 68XXX processors.  The
68332 is a 68020 with serial/parallel IO, DMA and other goodies.  The
different versions have different features.

rhk
From: dedos3@wsinfo11.info.win.tue.nl (Wilco Boumans)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: PasTeX
Date: 10 Apr 92 08:38:43 GMT
Reply-To: dedos3@info.win.tue.nl
Distribution: comp
Organization: Eindhoven University of Technology, the Netherlands

In article <1992Apr8.142056.14521@srd.bt.co.uk> jhawes@everest.srd.bt.co.uk writes:
>From article <ku1gtiINN1ep@utkcs2.cs.utk.edu>, by levi@cs.utk.edu (David Levi):
>> 
>> Since nobody in c.s.a.applications answered, I'm asking this here.  I need
>> to get PasTeX working, but I'm having a problem with DVIPrint.  It keeps
>> popping up requestors asking for volumes like '360x360.1' or '180x120.4'
>> These look like printer resolutions.  What do I need to do?  Any help
>> is really appreciated.
>> 
>> -Dave Levi    levi@cs.utk.edu
>
>Maybe these have to be logical assignments to drawers with fonts or
>something in ??

For DVIPrint to work, you indeed need the volumes 360x360.*, because these
disks hold the various .pk files, containing the fonts. There is, however a
way to get around buying (I don't think they are available on anonymous ftp)
by downloading the metafont program. Metafont can generate the fonts, using
.mf description files, it just takes a (very) long time. Once the fonts are
generated, you can use them.

By the way, has onyone else encountered the problem with using the $\Box$
command in LaTeX. When I use it, it shows an element sign in the ShowDVI
program, but it should be a box. DVIPrint prints the box alright, but gives
a checksum error on the character.

Wilco Boumans,
dedos3@info.win.tue.nl
From: jbickers@templar.actrix.gen.nz (John Bickers)
Newsgroups: comp.sys.amiga.programmer
Subject: ARexx, Input()
Date: 11 Apr 92 19:03:38 PST
Organization: TAP, NZAmigaUG

    I have a program in which I would like to wait for a character from
    Input() at the same time as I wait for a message at an ARexx port. Is
    there some way to do this?

    Currently I do a getchar() to wait for an input character, so if I
    receive an ARexx message it won't get processed until the user types
    a character.
--
*** John Bickers, TAP, NZAmigaUG.        jbickers@templar.actrix.gen.nz ***
***    "Radioactivity - It's in the air, for you and me" - Kraftwerk    ***
Newsgroups: comp.sys.amiga.programmer
From: njkleinb@descartes.waterloo.edu (N. Jason Kleinbub)
Subject: Re: DIV?
Summary: Not Quite...
Keywords: C hint
Reply-To: dgilbert@snowhite.cis.uoguelph.ca
Organization: University of Waterloo
	<1992Apr6.183949.8225@cis.ohio-state.edu>
Date: Fri, 10 Apr 1992 20:40:14 GMT

In article <1992Apr6.183949.8225@cis.ohio-state.edu> juncewic@strawberry.cis.ohio-state.edu (thomas michael juncewicz) writes:

   In article <92097.020922JLKARAU@MTUS5.BITNET> <JLKARAU@MTUS5.BITNET> writes:
   >Is there an INteger Division operator in C?  I need something to return a
   >whole value and am at a sticking point.  Maybe it is to late?  Any help is appr
   >eciated.. JLKARAU@mtus5.cts.mtu.edu

   I think what yer lookin for is something like this:

   a=(int)(a/b);

   The (int) forcibly converts the result into an integer value.  Hope that helps.

Not quite... you're probably looking for:
a=((int)a)/((int)b));

The difference is that the division will be done as an integer.

Dave.
From: dlove@cbnewsf.cb.att.com (Dave Love)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: free -- how it works
Date: 13 Apr 92 15:57:41 GMT
Distribution: na
Organization: AT&T

In article <920413.012528.CDT.C503719@UMCVMB.MISSOURI.EDU> C503719@UMCVMB.MISSOURI.EDU (Baird McIntosh) writes:
>
>Now, the question.  If the free(*p) statement is commented out, the
>program still seems to free all memory that it mallocs.  That is, after
>running the program several times, 'avail' still shows the same amount
>of memory before running as after.  Why?  If we don't free(*p), there should
>be 1000 ints * 4 bytes/int == 4000 bytes eaten each time the program runs.
>Or do I misunderstand how the free() function works?  (That's probably it :-)

SAS/C will free any malloc'ed memory upon exit; I assume DICE does the
same.  While it's a nice feature, it's not required (i.e. please don't
count on it).  If you replace your calls to malloc with calls to
AllocMem (and free to FreeMem), you get the effect your looking for:
Since SAS/C doesn't (can't) track AllocMem, it won't free it on exit.

>| Baird McIntosh , c503719@umcvmb.missouri.edu <-or-> c503719@umcvmb.bitnet |
>|    "Love:  you can't start it like a car;                                 |
>|            you can't stop it with a gun." -- spoken by David Letterman    |

 Cheers,

 - Dave Love
Newsgroups: comp.sys.amiga.programmer
From: rknop@cco.caltech.edu (Robert Andrew Knop)
Subject: Re: FAQ list/annoying SAS5.10 window
Organization: California Institute of Technology, Pasadena
Date: Tue, 14 Apr 1992 17:25:56 GMT

l-rittle@uiuc.edu (Loren J. Rittle) writes:
>>When compiling programs with SAS 5.10, an annoying window
>>opens every time I go to run my compiled code. Is there any
>>way to get rid of this extra window?

According to P. 14-15 of the "Customer Service Guide" that came with the 5.10b
upgrade (from 5.10a) that I got, you can get rid of that window by putting the
statement "DEFINE __main=__tinymain".

However, this doesn't seem to work for me.  First, when compiling, it tells me
I have an undefined symbol y-with-an-umlaut (one character long) first
referenced in <UNKNOWN>.  Then, when it is nearly done compiling, after the
"final output" statement, it says, "_main: Unknown command."

In spite of these errors, the compiled executable still seems to run.  BUT, I
still get the annoying window on the workbench!

Any suggestions?

>You need to modify _main.c (in the 5.10b w/ ansi libs version, called
>__main.c before then I believe) and recompile.  This file should be
>located in lc:/source.  If the changes are straight foward for you,
>I can help via email.

I would be interested in seeing this.  I am a tad clueless; does _main.c
compile to c.o in the libs: directory?  If so, then I suppose it would be a
good idea to give it a different name when recompiling a modified version.
(And, I assume you could use this by linking to your different name instead of
to c.o in your blink statement, right?)

-Rob Knop
rknop@tybalt.caltech.edu
From: mykes@amiga0.SF-Bay.ORG (Mike Schwartz)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Register question
Distribution: world
X-NewsSoftware: Amiga GRn V1.29 4/10/92 (Beta) by Mike Schwartz
Date: 16 Apr 92 10:21:20 PST
Organization: Amiga makes it possible

In article <57420@cup.portal.com> Lee_Robert_Willis@cup.portal.com writes:
>REALLY STUPID ASSEMBLER QUESTION:
>
>I'm trying to learn how to create shared libraries with SAS C 5.10b.
>The first step is to create a Function-Definitions (.fd) file.
>In the .fd file, one must specify the registers in which the arguments
>will be passed, e.g. (from their example):
>
>   PirintIText(rp,itext,left,top)(A0/A1,D0/D1)
>
>From context, I gather that there are A registers and D registers.
>But nowhere in either the SAS manuals or the Amiga RKMs do I see
>a definition of what these registers are.  i.e.
>
>   How many A registers are there?
>

Eight.  However, one is dedicated as the stack pointer.  Note that there
are 2 stack pointers on a 68000.  In user mode, the A7 register is the
user-stack pointer.  In supervisor mode, the A7 register is the supervisor
stack pointer (the user stack pointer can also be accessed as the USP register).

>   How many D regiseters are there?

Eight, also.  These are general purpose data registers.

>
>   What's the difference between them?

The A registers are address registers, typically used as pointers or as
segment registers (just like on the 8088).  Most, if not all, 'C' compilers
on the Amiga dedicate A4 to be the data-segment register, making it point
at a max of 64K worth of global data (data section and BSS combined).  As
well, the A5 register will be dedicated as your stack frame pointer.  The
A6 register is used by the OS to point at opened library bases (DOSBase,
IntuitionBase, etc.).

The D registers are general purpose data registers.  They are typically
used as variables and intermediate values.

Both A and D registers can be used to pass parameters to subroutines.  This
is the case with the OS library routines.  If you notice in the PrintIText
example you give, rp and itext are pointers to structures, so they are passed
in address registers.  Left and top are numbers so they are passed in data
registers.

>
>   Why would you use one over the other?

The address registers are limited to the same kind of basic operations you
can do on pointers in the 'C' language (no coincidence here :).  For example,
in 'C', you can't multiple a pointer by a pointer.  Same is true of address
registers.  On the other hand, a data register can't be used to indirectly
fetch memory (i.e. as a pointer).  A data register CAN be used as an array
index, but an address register will be needed to point at the base of the
array.

>
>Can someone lend me a clue?

Sure.  Get a book on 68K assembly programming. :)

>
>--
>Lee      Lee_Robert_Willis@cup.portal.com

--
Author of Amiga GRn, MailMinder, Budokan, Beyond Dark Castle, Dark Castle,
and Genesis Dick Tracy and Marble Madness.
Mike Schwartz  (ames!zorch!amiga0!mykes or mykes@amiga0.sf-bay.org)
1124 Fremont Ave.
Los Altos, CA 94024
From: peter@cbmvax.commodore.com (Peter Cherna)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Custom Copperlist
Date: 7 Apr 92 00:53:05 GMT
Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
Organization: Commodore-Amiga, Inc.  West Chester, PA.

In article <1992Apr6.143233.23632@cccan.uucp> entity@cccan.uucp (Cybernetworx) writes:
>
>Is there a system friendly way of doing the following:
>I'd like to get IDCMP port to the
>screen, but since I don't need a window, I'd rather not waste memory on one.

Open a borderless backdrop window which is simple-refresh.  You won't
use much memory.  You _need_ a window to get IDCMP.  There's no
alternative...

> CYBERNETWORX             INET:   entity@cccan.gts.org

     Peter
--
From the disk of ...
Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc.
{uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
My opinions do not necessarily represent the opinions of my employer.

Xref: sparky comp.sys.amiga.programmer:7418 comp.sys.amiga.audio:2136 comp.sys.amiga.games:6622
From: RayTrace@cup.portal.com (Ray William Kulberda)
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.audio,comp.sys.amiga.games
Subject: Re: A3000/2.04 differences for audio?
Date: 7 Apr 92 01:32:34 GMT
Organization: The Portal System (TM)

I've heard of this happening before and I believe it was because of the 32
bit architecture and/or the 68030.  But if the games are programmed properly
there shouldn't be any problems.  I have an A500/2.04 and Faery Tale works
fine.  When I get my A3000/25/100 in err... 9 days!  I'll have to try it.
Newsgroups: comp.sys.amiga.programmer
From: george@jorune.aco.dec.com (George A. Withers)
Subject: Re: Manx 5.2d + gmtime() DST problem?
Reply-To: george@jorune.aco.dec.com (George A. Withers)
Organization: Digital Equipment Corporation
Date: Thu, 16 Apr 1992 17:08:56 GMT

Manx 5.2d?
        ^

The latest I have is 5.2a and they were beta-testing 5.2b (months back).
Is 5.2d the latest released version or a test rev?  Anything fantastic
new in a nutshell?

George
--
george@jorune.enet.dec.com
From: mbs@adastra.cvl.va.us (Michael B. Smith)
Newsgroups: comp.sys.amiga.programmer
Subject: Re:  Discussion about GNU compilers
Distribution: world
Reply-To: adastra!mbs@Virginia.Edu
Date: 9 Apr 92 18:57:47 EDT
Organization: Private UUCP Node

In article <m6FRq*XV0@germal.bs.open.de> gm@germal.bs.open.de (Gerald Malitz) writes:
> In article <3RkPq*ks1@swinjm.UUCP>, Jean-Michel Forgeas writes:
>
> > Could be fine if discussions about GNU compilers could be done in a
> > specific group. How about creating 'comp.sys.amiga.gnu' ?
>
>	How about alt.sys.amiga.gnu next to alt.sys.amiga.uucp?  Should
> be much easier and faster to create.	(Otherwise that should be
> comp.sys.amiga.programmer.gnu :^) ).

The primary problem with this is that many sites do not carry the 'alt'
hierarchy, due to the volume and content of some of the groups.

Personally, I don't see why the Amiga 'gnu' discussions shouldn't stay in
c.s.a.programmer. It applies to programming, normally.....

Actually, I think we should probably go ahead and do a CFD on c.s.a.uucp,
as a demonstrated audience and interest has been shown to exist in the alt
group.
--
  //   Michael B. Smith
\X/    ...!uunet!virginia!adastra!mbs
Newsgroups: comp.sys.amiga.programmer
From: cpca@marlin.jcu.edu.au (Colin Adams)
Subject: Re: FAQ list/annoying SAS5.10 window
Organization: James Cook University, North Queensland
Date: Thu, 16 Apr 92 06:54:08 GMT

In article <29eaeea8@p5.f7.n242.z2.fidonet.org> Alexander_Lazarevic@mowgli.fido.de (Alexander Lazarevic) writes:
>In a message dated <10 Apr 92  21:52:36> Thorne Kontos wrote:
>
>TK> When compiling programs with SAS 5.10, an annoying window
>TK> opens every time I go to run my compiled code. Is there any
>TK> way to get rid of this extra window?
>
>IMHO RTFM concerning TINYMAIN!
>

This is a bit harsh!  It's almost impossible to find anything
in the SAS C manual, particularly regarding this matter.  That's
why people keep posting about it.  Blame SAS.

>al


-- 
Colin Adams         Honours Student - James Cook University of North Queensland
I've seen you smile, but I've never really heard you laugh.  So who is rich
and who is poor I cannot say. - The Smiths
Newsgroups: comp.sys.amiga.programmer
From: tpurves@sygnus.uucp (Tim Purves)
Subject: Re: FAQ list/annoying SAS5.10 window
Organization: None
Date: Mon, 13 Apr 1992 20:04:18 GMT

In article <1992Apr13.071346.2212@sunb10.cs.uiuc.edu> l-rittle@uiuc.edu (Loren J. Rittle) writes:
>kontos@clipper.ingr.com (Thorne Kontos) writes:
>>Is there a FAQ list for this newsgroup, and if so, where is it
>>located? (I have FTP access so that is no problem.)
>
>No FAQ that I know of.  Feel free to start one. :-)
>
>>When compiling programs with SAS 5.10, an annoying window

In the blink file, just add a line. 'define __main=__tinymain'

:w