Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!agate!spool.mu.edu!uunet!mcsun!Germany.EU.net!Urmel.Informatik.RWTH-Aachen.DE!cip-s02!thomasg From: thomasg@cip-s02.informatik.rwth-aachen.de (Thomas Gellekum) Subject: Re: Compiling a C++ program... ? Message-ID: <thomasg.721383887@cip-s02> Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner) Nntp-Posting-Host: cip-s02 Organization: Rechnerbetrieb Informatik / RWTH Aachen References: <1992Nov9.050440.17589@news.ysu.edu> Date: 10 Nov 92 08:24:47 GMT Lines: 32 ae007@yfn.ysu.edu (Daniel Newcombe) writes: >Hi, for class we had to write a program and I did mine in >Turbo C++ 3.0. It compiled fine with both the ANSI and UNIX >options enabled. When I shipped it over to 386bsd and tried >to compile it (g++ -o algo algo.cpp) I got this error: >ld: malformed input file (not rel or archive) algo.cpp > There are no man pages for ld or g++ (figures) try mv algo.cpp algo.cc g++ -o algo algo.cc -lgnulib the -lgnulib is probably necessary, otherwise ld complains it can't find _fprintf (i think). maybe i should try ranlib libgnulib.a one day... > Thanks... > -Dan >-- > -Dan Newcombe >Internet Address: STDN@VM.MARIST.EDU >Youngstown Freenet: ae007@yfn.ysu.edu >GOAL: To put the world on 3.5" diskettes... :) hope i could help thomas -- thomas gellekum, kapellenstr. 26, d-5100 aachen, w-germany dq060ge@dacth11.bitnet | thomasg@pool.informatik.rwth-aachen.de "why stop now, just when i'm hating it?" - marvin