home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / bsd / 8668 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.4 KB  |  45 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!mcsun!Germany.EU.net!Urmel.Informatik.RWTH-Aachen.DE!cip-s02!thomasg
  3. From: thomasg@cip-s02.informatik.rwth-aachen.de (Thomas Gellekum)
  4. Subject: Re: Compiling a C++ program... ?
  5. Message-ID: <thomasg.721383887@cip-s02>
  6. Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner)
  7. Nntp-Posting-Host: cip-s02
  8. Organization: Rechnerbetrieb Informatik  /  RWTH Aachen
  9. References: <1992Nov9.050440.17589@news.ysu.edu>
  10. Date: 10 Nov 92 08:24:47 GMT
  11. Lines: 32
  12.  
  13. ae007@yfn.ysu.edu (Daniel Newcombe) writes:
  14.  
  15.  
  16. >Hi, for class we had to write a program and I did mine in
  17. >Turbo C++ 3.0. It compiled fine with both the ANSI and UNIX
  18. >options enabled.  When I shipped it over to 386bsd and tried
  19. >to compile it (g++ -o algo algo.cpp) I got this error:
  20. >ld: malformed input file (not rel or archive) algo.cpp
  21. > There are no man pages for ld or g++ (figures)
  22.  
  23. try 
  24. mv algo.cpp algo.cc
  25. g++ -o algo algo.cc -lgnulib
  26.  
  27. the -lgnulib is probably necessary, otherwise ld complains it can't find
  28. _fprintf (i think). maybe i should try ranlib libgnulib.a one day...
  29.  
  30. >     Thanks...
  31. >     -Dan
  32. >-- 
  33. >    -Dan Newcombe
  34. >Internet Address:  STDN@VM.MARIST.EDU
  35. >Youngstown Freenet: ae007@yfn.ysu.edu
  36. >GOAL: To put the world on 3.5" diskettes...  :)
  37.  
  38. hope i could help
  39.  
  40. thomas
  41. -- 
  42. thomas gellekum, kapellenstr. 26, d-5100 aachen, w-germany
  43. dq060ge@dacth11.bitnet         |      thomasg@pool.informatik.rwth-aachen.de
  44. "why stop now, just when i'm hating it?" - marvin 
  45.