🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41632

How to use GCC on Mac?

#41632
From: Jarmo J Lammi
Date: Thu, 29 Feb 1996 00:00
40 lines
1986 bytes
Could anybody explain, why the prepocessor of GCC 1.37 can't find the 
include files. The precompile phase gives just an error message:  
Undefined error: 0 for the next very simple code: 

#include <stdio.h>
main()
{
printf("Test on GCC\n");
}

Thus I can't proceed from the very beginning of compiling. Should I 
change something on setup or configuration?
The include files are located in the GCC 1.37:BSD #includes-folder. I 
have put this name to the  search path but it doesn't work. The folder 
usr contains the subfolders lib- and gcc archive, the gcc archivessa 
contains the GCC-program as well as the loader  and stdio.suit. What are 
this file loader and the suit-type files for?

As I left away the includes, I could do the precompilation and the 
assembing without any error, however during the linking there is the 
error message: undefined function _printf.

The was no tutor or instructions, how to start and use GCC.

I use a Macintosh version of GCC on a 7.5 system.
I have earlier used a C-compiler on Amiga only and I have found as a new 
Mac-user , it's difficult to find any programming languages to be used on 
a Mac. I would be happy, if I could find a Pascal compiler at least.

I will acknowledge with gratitude your advices,
Jarmo Lammi


--
     :============================================:
     :  Jarmo Lammi, Tornio, Finland              :
     :  Internet e-mail: jjlammi@sampo.tokem.fi   :
     :  IBMNET e-mail:   fiokulq9@ibmmail.com     :
     :  http://www.helsinki.fi/~jmmlammi/isi      :
     :============================================:
Technical Details
Message-ID: <4h520b$45k@navigator>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e753ada9dd9fb5f8,start
X-Google-Attributes: gid11318c,public
From: jjlammi@news.otol.fi (Jarmo J Lammi)
Subject: How to use GCC on Mac?
Date: 1996/02/29
Message-ID: <4h520b$45k@navigator>
X-Deja-AN: 141620693
organization: Kemi-Tornio Polytechnical Technical Unit
newsgroups: gnu.gcc.help