Article View: gnu.gcc.help
Article #552Need help! URGENT!
From: Erik van Linstee
Date: Mon, 05 Oct 1992 20:39
Date: Mon, 05 Oct 1992 20:39
28 lines
1594 bytes
1594 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. 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.203900.26683@donau.et.tudelft.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!uknet!mcsun!sun4nl!dutrun!donau!dutecaj.et.tudelft.nl!linsteeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!uknet!mcsun!sun4nl!dutrun!donau!dutecaj.et.tudelft.nl!linstee From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee) Newsgroups: gnu.gcc.help Subject: Need help! URGENT! Message-ID: <1992Oct05.203900.26683@donau.et.tudelft.nl> Date: 5 Oct 92 20:39:00 GMT Sender: news@donau.et.tudelft.nl (UseNet News System) Organization: Delft University of Technology, Dept. of Electrical Engineering Lines: 28 Nntp-Posting-Host: dutecaj.et.tudelft.nl