🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #550

Novice questions

#550
From: Erik van Linstee
Date: Mon, 05 Oct 1992 10:30
29 lines
1553 bytes
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)
Technical Details
Message-ID: <1992Oct05.103044.17774@donau.et.tudelft.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!dutecaj.et.tudelft.nl!linstee

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!dutecaj.et.tudelft.nl!linstee
From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee)
Subject: Novice questions
Message-ID: <1992Oct05.103044.17774@donau.et.tudelft.nl>
Sender: news@donau.et.tudelft.nl (UseNet News System)
Nntp-Posting-Host: dutecaj.et.tudelft.nl
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Mon, 05 Oct 1992 10:30:44 GMT
Lines: 29