🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #147

tricks to C++ on my new NeXT?

#147
From: Karl Hanzel
Date: Wed, 04 Nov 1992 22:49
36 lines
1445 bytes
Ok, i'm new to the NeXT.  When submitting your basic:
-----------
#include        <stdio.h>
main()                                  // see if the compiler works
{
   printf( "Hello, World!\n" );
}
-----------

to the(? well... is it?) compiler, like so:
-----------
	cc++ -o hello hello.c
-----------

it (ld) complains:
-----------
/bin/ld: Undefined symbols:
_printf__FPCce
-----------

Where the heck is it finding the symbol "_printf__FPCce", and how can i
avoid this sort of problem in the future.  Do i need to link to a special
library somewhere?  I see that there is a libc++ in /usr/lib, but it's not
clear what that is for (contains gnulib3.o ?).

Also, I doesn't look like StreamI/O is a feature, in that there is no
<iostream.h> to include.  What gives?

Is this a C++ compiler or not?... what about the rest of the system?

Thanks for your help!  Email preferred.
pax,
   Karl
   *----->

   hanzel@csn.org
Technical Details
Message-ID: <Bx7rDx.KDw@csn.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!teal.csn.org!hanzel

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!teal.csn.org!hanzel
From: hanzel@teal.csn.org (Karl Hanzel)
Subject: tricks to C++ on my new NeXT?
Message-ID: <Bx7rDx.KDw@csn.org>
Sender: news@csn.org (news)
Nntp-Posting-Host: teal.csn.org
Organization: Colorado SuperNet, Inc.
Distribution: usa
Date: Wed, 4 Nov 1992 22:49:08 GMT
Lines: 37