HDTenEightyP/NetNews huggingface dataset:
From: mack@redwood.cray.com (Dan Mack)
Subject: Internal compiler error cc1plus
Reply-To: mack@cray.com
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 3 Oct 1992 19:04:52 GMT

The bug is an Internal compiler error.  Here's an example:

% g++ -c -v -Wall bug.cc
Reading specs from /usr/contrib/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/specs
gcc version 2.2.2
 /usr/contrib/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix -Wall bug.cc /usr/tmp/cca02208.i
GNU CPP version 2.2.2 (sparc)
 /usr/contrib/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/cc1plus /usr/tmp/cca02208.i -quiet -dumpbase bug.cc -Wall -version -o /usr/tmp/cca02208.s
GNU C++ version 2.2.2 (sparc) compiled by GNU C version 2.2.2.
/usr/contrib/bin/gcc: Internal compiler error: program cc1plus got fatal signal 11

Here is bug.cc:

/* beginning of bug.cc */

#include <stream.h>

template<class T> 
class vector {
 public:
  vector(int) { };
};

template<class T>
ostream& operator<<(ostream& strm, vector<T> &) {
  return strm;
}

main() {
  vector<int> v(10);
  cout << "v=" << v << "\n";
}

/* end of bug.cc */

I've noticed this problem under two different situations:

 gcc 2.2.2 configured with sparc-sun-sunos4.1 using s sparcstation running
 SunOS 4.1.1

 gcc 2.1 on an Atari ST fails to compile bug.cc and aborts with two
 bombs and no error messages.

Dan

-- -- -- --- --- --- ----   ___  ---- ----- ----- ----- ------ ------ ----
Dan Mack (mack@cray.com)   / | \      "We're not hitchiking anymore... ..
Sun/SGI Resource Group     \/_\/           We're riding!"  -Commander Hoek
Cray Research, Eagan MN   ----- ----- ---- ---- ---- --- --- --- -- -- ---

Newsgroups: gnu.gcc.bug
From: chu@rabbit.ee.msu.edu (Yung-Kang Chu)
Subject: Information about DataParallel C ?
Organization: College of Engineering, Michigan State University
Date: Tue, 29 Sep 92 16:39:06 GMT

Is any body out there have information about using DataParallel C?
A user's guide or tutorial is what I need. Any information
is appreciated.

Yung-Kang Chu
chu@frith.egr.msu.edu
Xref: sparky gnu.gcc.help:2240 comp.robotics:1942
From: cmcmanis@pepper.Eng.Sun.COM (Chuck McManis)
Newsgroups: gnu.gcc.help,comp.robotics
Subject: Re: gcc cross compiler for the 6811?
Date: 2 Oct 1992 18:16:28 GMT
Organization: Sun Microsystems, Mt. View, Ca.
NNTP-Posting-Host: pepper

In article <JEFF.92Oct1084903@claw.clearpoint.com> jeff@claw.clearpoint.com writes:
>How does one go about getting  the PC version that you say they "give
>away?"  Is there an ftp sight, or do you have to contact them and have
>it sent?

Well, I'm suprised that coactive hasn't contributed since they are on
the net and read this group (coactive@coactive.com). Anyway, they "give"
you GCC when you buy their product. Note that nothing in the GNU license
says that they have to give it to you just because they have it :-) It
only says that if they do give it to you, they have to also make the source
available, they can't charge unreasonable distribution fees, etc, etc.

I'm also "on the fence" on whether or not to get their board. What I
_want_ to buy (and will send $199 to whomever advertises it :-)) is
a 6811 board that includes 4 motor driver chips like the miniboard,
plus some high current outputs that I can use to drive a couple of
stepper motors if I want, plus space for 32K of EPROM and 32K of battery
backed up RAM. Plus it runs on 5v and has a max232 RS-232 port.
Optionally it should come with Basic-11 in an EPROM but that isn't
strictly a requirement. The nice thing about the miniboard is that it
is _designed_ for robotics. Whereas most other "microcontroller" products
on the market today are "general purpose" (which means it can do anything
with a bit more hardware and software). At least the EVB board actually
has prototype space for you to add your hardware.

Itt seems that a reasonable design would be one with a "bus" at one end
of the card and several special purpose daughter board cards like :
	robotics daughter board
	sensor daughter board
	hicurrent controller board
	X-10 controller board
	keypad interface board.
(you get the picture.)

--Chuck
--
--Chuck McManis						    Sun Microsystems
uucp: {anywhere}!sun!cmcmanis   BIX: <none>   Internet: cmcmanis@Eng.Sun.COM
NIS+ Architect
These opinions are my own and no one elses, but you knew that didn't you.
Newsgroups: gnu.gcc.help
From: rogerr@netcom.com (roger reynolds)
Subject: using GCC 2.2.2 with /usr/5bin/cc link problem
Followup-To: poster
Organization: Netcom - Online Communication Services  (408 241-9760 guest)
Distribution: gnu
Date: Mon, 28 Sep 1992 21:54:12 GMT

	Hi, I am using gcc2.2.2 on a sparc running 4.1.2
	I am forced to use the system 5 versions of some
	libraries for a particular application,
	which I compile with gcc.

	So all of my .o files are created with gcc v2.2.2
	and at link time I use /usr/5bin/cc.
	
	This has worked fine for me with gcc 1.40, but now I
	am getting the following error at link time :

		ld: Undefined symbol ___main 

	Help anybody..
	rogerr@netcom.com
From: rms@gnu.ai.mit.edu (Richard Stallman)
Newsgroups: gnu.gcc.help
Subject: Internal compiler error.
Date: 3 Oct 92 10:23:11 GMT
Distribution: gnu
Organization: GNUs Not Usenet

If you get a "internal compiler error" message from GCC, please
consider this a bug, and follow the recommendations in the Bugs
chapter in the GCC manual.

This chapter also contains guidelines for how to decide whether an
event calls for a bug report, so it's a good idea for everyone to read
the chapter if you haven't read it since version 2.2.2 came out.

GCC version 2 is a program in beta test.  It has bugs, and those bugs
ought to be fixed.  That can only happen if you do your part of the
job and report them in a useful way.
Newsgroups: gnu.gcc.help
From: MEHRDAD@glum.DEv.cf.ac.UK (GHASSEMPOORY)
Subject: REAL_VALUE macros for VAX to IEEE floating point format
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 5 Oct 1992 16:09:00 GMT

I am trying to configure GCC 2.2.2 for VAX-VMS as a 68K cross compiler.
According to GCC manual I need to define a range of macros for IEEE floating 
point operations (REAL_VALUE... macros as defined by GCC manual Pages 293-295). 
Before I re-invent the wheel, I would like to know whether anybody out there has 
already done this?

If yes, can I have a copy please? 
Newsgroups: gnu.gcc.help
From: jaisimha@iastate.edu (Jaisimha Muthegere)
Subject: TCOV Support from GCC
Summary: Is there a patch for GCC that allows TCOV support?
Keywords: tcov, block-profiling, gcc, GNU
Organization: Iowa State University, Ames IA
Distribution: gnu
Date: Mon, 28 Sep 1992 19:39:45 GMT

I installed GCC 2.1 on our Sun-4s, and realized that there is no tcov support
from GCC.  However, GCC supports the -a option, but does not create a suitable
.d file for the block count/profiles to be written to.

I have been poring through the source code, and have found the place(s)
where such a file must be created, when the profiling code is actually
generated, how it has to link with /usr/lib/bb_link.o, and so on.
However, I haven't been able to figure out the "block structure" assumed
by GCC with respect to actually, writing line numbers into the .d file.

Any idea if there is a patch for this, or do we have to manage without tcov for
code coverage?

Appreciate your input....  Thanks...

- Jaisimha

--
Jaisimha Muthegere		E-mail: texatrium!jaisimha@emx.utexas.edu

Newsgroups: gnu.gcc.help,comp.robotics
From: wilker@hopf.math.purdue.edu (Clarence Wilkerson)
Subject: Re: gcc cross compiler for the 6811?
Organization: Purdue University
Date: Fri, 2 Oct 1992 17:17:41 GMT

I thought I saw last spring diffs to make a gcc 1.40 6809 compiler. The
FTP site was in Wisconsin or Minnesota.....
-- 
Clarence Wilkerson      \ Bitnet:       wilker%math.purdue.edu@purccvm
Prof. of Math. (topology)\ Internet:    wilker@math.purdue.edu
Dept. of Mathematics      \ messages:   (317) 494-1903, FAX 494-0548
Purdue University,         \ office:    (317) 494-1955 (voice/modem)
W. Lafayette, Indiana 47907 \ 
Newsgroups: gnu.gcc.help
From: chung@raynet.COM (Carlos Hung 415-688-2214)
Subject: Can't get gcc working on SunOS 4.1.x
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 2 Oct 1992 20:38:14 GMT


This is our first time using gcc. 
We have just installed version 2.2.2.

Then we proceeded to compile one of our programs using 
gcc 2.2.2.  We obtained the following compiler error:

"O: undefined flag -lang-c"

Can someone tell me what we might have done wrong?

Thanks.

P.S. We are in the process of reinstalling gcc again.
Newsgroups: gnu.gcc.help
From: dk3uz@mcshh.Hanse.DE (Edmund Ramm)
Subject: GCC 4 MSDOS?
Organization: Point of Presence & MCS Hamburg
Date: Thu, 1 Oct 1992 19:46:17 GMT


   Is there a GNU GCC port which runs under A MESS DOS or half an opera-
ting system (OS/2)?

   cu, Eddi


UUCP:     uunet!mcsun!unido!mcshh.hanse.de!dk3uz     |  Real:  Edmund H. Ramm
AMPRNET:  dk3uz%dk3uz@db0hhn.ampr.org [44.130.0.81]  |  AX.25: dk3uz@db0hb
Xref: sparky gnu.gcc.help:2249 comp.robotics:1949
From: peters@beltrix.guild.org (Peter Sleggs)
Newsgroups: gnu.gcc.help,comp.robotics
Subject: Re: gcc cross compiler for the 6811?
Date: Sat, 03 Oct 92 14:11:41 EDT
Organization: Bellatrix Systems Corp., Mississauga, ONT Canada

cmcmanis@pepper.Eng.Sun.COM (Chuck McManis) writes:

> I'm also "on the fence" on whether or not to get their board. What I
> _want_ to buy (and will send $199 to whomever advertises it :-)) is
> a 6811 board that includes 4 motor driver chips like the miniboard,
> plus some high current outputs that I can use to drive a couple of
> stepper motors if I want, plus space for 32K of EPROM and 32K of battery
> backed up RAM. Plus it runs on 5v and has a max232 RS-232 port.
> Optionally it should come with Basic-11 in an EPROM but that isn't
> strictly a requirement. The nice thing about the miniboard is that it
> is _designed_ for robotics. Whereas most other "microcontroller" products
> on the market today are "general purpose" (which means it can do anything
> with a bit more hardware and software). At least the EVB board actually
> has prototype space for you to add your hardware.
> 
> Itt seems that a reasonable design would be one with a "bus" at one end
> of the card and several special purpose daughter board cards like :

I have most of what you want designed already [ except for the Memory -
8Kx8 was the affordable part then (1989) ]

> 	robotics daughter board
> 	sensor daughter board
> 	hicurrent controller board
> 	X-10 controller board
> 	keypad interface board.
> (you get the picture.)

Yep, thats why I put the 50 pin expansion bus on - I knew that many
people want different things...

peter


--
Bellatrix Systems Corp. Mississauga, Ontario Canada
peters@beltrix.guild.org or beltrix!peters
Newsgroups: gnu.gcc.help
From: rsilvers@cirrus.nynexst.com (Robert Silvers)
Subject: Need gcc cross compiler for 6502 (Sun4->6502)
Originator: rsilvers@cirrus
Organization: Nynex Science and Technology
Date: Tue, 6 Oct 92 19:43:00 GMT


	If there a way to cross compile from a sun to 6502 assembler?
I have the full gcc 2.2.2 distribution.
		
					Thanks,
						--Rob.
Newsgroups: gnu.gcc.help
From: ecl2v@uvacs.cs.Virginia.EDU (Edmond C. Loyot)
Subject: gcc on iPSC/2 host
Organization: University of Virginia Computer Science Department
Date: Sun, 4 Oct 1992 18:24:28 GMT

I am trying to build gcc-2.2.2 on the host machine for the Intel hypercube.
The 'cube is an iPSC/2. The host machine I am trying to build the 
compiler for is an Intel machine, 386 processor running UNIX sysv r3.2.
It looks like a Microsoft port of ATT sysv r3.2. I have configured to 
system to build gcc for i386-att-sysv3. When I go to compile it, the -g
option is set for every file. This causes assembler errors in several
of the files (rtl.c for example). I can get the system to compile all 
the .c files by removing the -g option, but then when the system begins 
to compile what I guess are its library functions (like _builtin_New or
_mulsi3) the newly built gcc craps out with an internal error. Can
anyone shed some light on this or give me some suggestions.

Ed

Ed Loyot
Graduate Student
Dept. of Computer Science 
University of Virginia

email: ecl2v@virginia.edu

Newsgroups: gnu.gcc.help,comp.robotics
From: jrichard@cs.ulowell.edu (John 'MacGyver' Richardson)
Subject: gcc cross compiler for the 6811?
Organization: University of Massachusetts at Lowell Computer Science
Date: Mon, 28 Sep 1992 19:12:08 GMT


Hi, 

	Does anyone know if there is a gcc cross compiler for the 6811
(this is the CPU used by Fred Martin's miniboard 2.0 discussed in 
comp.robotics).  

	While searching though the config .h files I noticed 
there is code for 680x0 CPUs.  Would it be hard to convert gcc to the
6811 from a 68000 (I assume it would be a 'scaling down' of addressing
modes)?


John Richardson 	   |"sun dogs fire on the horizon        \ \   \
jrichard@cs.ulowell.edu    | meteor rain stars across the night   * *   \   /\
			   | ...the spark still flies                /\  * /  \
                           | reflected in another pair of eyes." /\ /  \/\/
                                                           ------  \   / / 



Newsgroups: gnu.gcc.help
From: gsk@marble.COM (Geoffrey S. Knauth)
Subject: where is typedef name kept?
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 30 Sep 1992 11:46:43 GMT

Given:	typedef unsigned int u_int;

I need to get both "unsigned int" and "u_int".  So far I've only found
"unsigned int" in the tree structures.

Where is "u_int" stored, or is it not stored?
From: stephen@mont.cs.missouri.edu (Stephen Montgomery-Smith)
Newsgroups: gnu.gcc.help
Subject: Re: glibc-1.04 installation problems
Date: 5 Oct 92 21:37:11 GMT
Organization: University of Missouri

In <1992Oct2.123803.20195@newsserver.rrzn.uni-hannover.de> muenkel@tnt.uni-hannover.de (Heiko Muenkel) writes:

># make -w
>make: Entering directory `/tmp_mnt/appl/gnu-source/glibc-1.04'
>Makeconfig:72: extraneous text after `include'
>make: sysdeps/..: Is a directory.  Stop.
>make: Leaving directory `/tmp_mnt/appl/gnu-source/glibc-1.04'


>Can anybody tell me what's going wrong ? 

Could people tell me what is wrong too?  I get the same problem using
sunos 4.1.1.

Thanks Stephen
Newsgroups: gnu.gcc.help
Subject: gcc expects crt1.o crtn.o
From: triemer@eagle.wesleyan.edu
Date: 25 Sep 92 18:13:41 EDT
Organization: Wesleyan University

I am working on a 3b2/310 version Svr3 - version 3.2 - I just got the bins for 
gcc-2.2.2 - and am slowly installing it... gcc seems to do fine with the cpp,
the compile phases, but it fails on the linker.

Now, after a little poking and prodding, I found that the linker was trying to
include crt1.o, and crtn.o  - I found a file called specs that apparently came
with the gcc bins, and it seemed to indicated that crt1.o was the startfile
that gcc used when compiling and crtn.o was the endfile.  My machine had no
crt1.o, but it did have a crt0.o - I copied the crt0.o to crt1.o - looking 
for something similar for crtn.o, I didn't find anything - so I figured I would
just try and stuff some non-offensive function (noop) into a .o file and put
it in crtn.o - Apparently that seems to work, I can now compile and run a
classic "hello world" file - which of course makes me very happy.  

The problem:  I'm not happy just letting it remain that way, I'd prefer, for my
own piece of mind, to know what functions are normally kept in crt1.o and
crtn.o.  Anyone out there know?

-Thomas riemer
Xref: sparky gnu.gcc.help:2248 comp.robotics:1948
From: v078p6g8@ubvmsd.cc.buffalo.edu (Richard M Wasserman)
Newsgroups: gnu.gcc.help,comp.robotics
Subject: Re: gcc cross compiler for the 6811?
Date: 3 Oct 92 22:24:00 GMT
Organization: University at Buffalo
News-Software: VAX/VMS VNEWS 1.41

In article <lcp4fsINN2ln@exodus.Eng.Sun.COM>, cmcmanis@pepper.Eng.Sun.COM (Chuck McManis) writes...
The nice thing about the miniboard is that it
..
>is _designed_ for robotics. Whereas most other "microcontroller" products
>on the market today are "general purpose" (which means it can do anything
>with a bit more hardware and software). At least the EVB board actually
>has prototype space for you to add your hardware.
> 
>Itt seems that a reasonable design would be one with a "bus" at one end
>of the card and several special purpose daughter board cards like :
>	robotics daughter board
>	sensor daughter board
>	hicurrent controller board
>	X-10 controller board
>	keypad interface board.
>(you get the picture.)
> 
>--Chuck
>--
>--Chuck McManis						    Sun Microsystems
>uucp: {anywhere}!sun!cmcmanis   BIX: <none>   Internet: cmcmanis@Eng.Sun.COM
>NIS+ Architect
>These opinions are my own and no one elses, but you knew that didn't you.

	Actually as I've been thinking about designing such a bus card 
oriented system based on the intel 80196kb series.  I'd be interested in
feedback on what to include on the robotics card, best way to go about
getting them made etc.  If anyone is intersted they can mail direct for more
info.  This is just a new thought so all input will be taken into account -
though I have built up 196kb designs that due work :-)
	Thanks,
	Rich Wasserman

P.S. Maybe this can become a group thing ala the miniboard since I'm not
looking to make a profit ( though a good word at your local graduate 
robotics program for next fall would be much appreciated ;-) )
Newsgroups: gnu.gcc.help
From: jmethot@vicorp.com (John Methot)
Subject: HELP: problem linking Gcc-compiled C code containing varargs (stdarg)
Reply-To: jmethot@vicorp.com
Organization: V. I. Corporation, Northampton, Massachusetts
Date: Mon, 5 Oct 1992 19:43:29 GMT

I am converting some C code from "traditional" (Sun C compiler) to ANSI.
Two of the routines I converted utilize variable argument lists.  The
original code was:

/*************************************************************************/
#include <varargs.h>

int fcn1( va_alist )
  va_dcl
  {
  va_list ap;
  char    *KeyName;
  int     TypeFlag;

  va_start( ap );
  KeyName = va_arg( ap, char* );
  TypeFlag = va_arg( ap, int );
  ...

and

int fcn2( slotkey, method, va_alist )
  int slotkey;
  int method;
  va_dcl
  {
  va_list args;

  va_start( args );
  data = va_arg( args, int* );
  ...
/*************************************************************************/

I changed these routines to:

/*************************************************************************/
#include <stdarg.h>

int fcn1( char *KeyName, ... )
  {
  va_list ap;
  char    *KeyName;
  int     TypeFlag;

  va_start( ap, KeyName );
  TypeFlag = va_arg( ap, int );
  ...

and

int fcn2( int slotkey, int method, ... )
  int slotkey;
  int method;
  {
  va_list args;

  va_start( args, method );
  data = va_arg( args, int* );
  ...

/*************************************************************************/

This module compiles fine (with gcc), using:

gcc -c -g -I(include dirs) -DDEBUG  badmodule.c

(-DDEBUG is used in the code in badmodule.c)

but when I go to link an executable against the library containing this
module, I get:

/*************************************************************************/
gcc -g test.o libApp.a -lm -y___builtin_saveregs -o test.x
ld: Undefined symbol
   ___builtin_saveregs
(badmodule.o): reference to external undefined ___builtin_saveregs
*** Error code 2
make: Fatal error: Command failed for target `test.x'
/*************************************************************************/

badmodule.o is the object file containing the compiled source (listed above).

libApp.a is an archive containing badmodule.o (and other stuff).

If you're not familiar with the -y flag, it is passed to ld to get it to
tell you which object file invoked the unresolved symbol.  It produces the

(badmodule.o): reference to external undefined ___builtin_saveregs

line.

The few ANSI C books I've been able to scrounge up have been no help.  In the
Emacs info nodes for gcc (specifically, File: gcc.info,  Node: Varargs) there
is a discussion of "Implementing the Varargs Macros," but this appears to
be aimed at people porting the Gcc compiler itself?  I don't want to 
*implement* the macros, I just want them to work.

This is happening on Sparc running SunOS 4.1.1.  Gcc is not our *normal*
compiler (that would be the Sun C Compiler), so perhaps I need to do some
environment magic to get Gcc to the right include directory or libs?  I'm
at a dead end, any help would be appreciated.

John Methot
jmethot@vicorp.com

Please respond via e-mail (Reply-To: line has been explicitly set to
ensure correctness).

Newsgroups: gnu.gcc.help
From: gswang@mayall.cs.unlv.edu
Subject: (none)
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 29 Sep 1992 15:22:00 GMT

To:bug-gcc@prep.ai.mit.edu
cc:gswang&cs.unlv.edu
Subject:bug
--------

   I am working on a project with G++. When I try to stream 

a object into file, I find some member function of iostrem does 

not  work correctly.

     First I wrote 2 objects into file then read them back.

Everything is wrong. I want know where this bug come from? 

from my code ? or from the compiler?

     Please send me mail and tell me what is wrong ASAP, because I can 

not  make any progress on my project before this is done.

    I appreciate your time!


    the following is the code and output:




#include <std.h>
#include <fstream.h>
#include <iostream.h>
class people{
public:
  char name[20];
  long ssn;
  people(char *n,long num){ memset (name,0,20);strcpy(name,n);}
};
int main()
{ people p0("",0);
  people p1("joe",12342);
  people p2("jery",345435);
  ofstream out("file");
  out.write((char *)&p1,sizeof(p1));
  out.write((char *)&p2,sizeof(p2));
  long pos=out.tellp();
  cout<<"position after write 2 people="<< pos<<"\n";
  out.close();

  ifstream input("file");
  input.read((char *)&p0,sizeof(p0));
  cout << "This is what is red from the file :  "<< p0.name <<" "<<p0.ssn<<"\n";
    return 0;
}



mayall% g++ -v cpptest.cc
Reading specs from /local/gnu/lib/gcc/sparc-sun-sunos4.1.1/2.1/specs
gcc version 2.1
 /local/gnu/lib/gcc/sparc-sun-sunos4.1.1/2.1/cpp -lang-c++ -v -undef -D__GNUC__=
2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix
__ -D__sparc -D__sun -D__unix cpptest.cc /usr/tmp/cc021848.i
GNU CPP version 2.1 (sparc)
 /local/gnu/lib/gcc/sparc-sun-sunos4.1.1/2.1/cc1plus /usr/tmp/cc021848.i -quiet
-dumpbase cpptest.cc -version -o /usr/tmp/cc021848.s
GNU C++ version 2.1 (sparc) compiled by GNU C version 2.1.
 as -o cpptest.o /usr/tmp/cc021848.s
 /local/gnu/lib/gcc/sparc-sun-sunos4.1.1/2.1/ld -e start -dc -dp /lib/crt0.o -L/
local/gnu/lib/gcc/sparc-sun-sunos4.1.1/2.1/ -L/local/gnu/lib/ cpptest.o -lg++ -l
gcc -lc -lgcc
mayall% a.out
position after write 2 people=0
This is what is red from the file :  jjoe 0
 

    (the position should be a number greater than 0)                     
    (the output "jjoe 0 "should be "joe 12342")
Newsgroups: gnu.gcc.help
From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee)
Subject: Novice questions
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Mon, 05 Oct 1992 10:30:44 GMT

The following may well be FAQs but since I couldn't find it (yet)
I will have to put them here.

(All is relevant to gcc for OS/2 btw)

When I call gcc *.c I get a long list of parsing errors, however
when calling gcc <all files explicitly> everything is fine. Is
there an explanation for this behaviour? It looks like the former
call gets gcc to use c++ style in spite of .c extensions.

Is there no matherr at all?

How exaclty should ld be invoked? When I compile a single file fi
like gcc program.c -o program.exe, I get an executable; when
I do gcc -c program.c, ld -o program.exe program.o I get undefined
symbols like __main, _printf, __fill, __flush. I have the
library_path=d:/lib/emx set. (Tried both forward and backward slash)
Basically what I want to know is, is there more detailed info
on the usage of ld?

Hoping you can help me out...
Thanks, Erik


-- 
Erik van Linstee   |   Delft University of Technology   |   I'll be back ... 
----
   We are god, 'cause only we can create the idea of his existence
   in our holy brains...  (Yello)
Newsgroups: gnu.gcc.help