www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/12/05:08:26

Xref: news-dnh.mv.net comp.os.msdos.djgpp:883
Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!torn!news.unb.ca!coranto.ucs.mun.ca!jgibbons
From: jgibbons AT morgan DOT ucs DOT mun DOT ca (Jake Gibbons)
Newsgroups: comp.os.msdos.djgpp
Subject: Djgpp v2 setup blues...
Date: 11 Jul 1995 17:57:37 GMT
Organization: Memorial University of Newfoundland
Lines: 34
Nntp-Posting-Host: plato.ucs.mun.ca
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Hello Djgpp programmers,

I recently decided to try djgpp for dos.  As I was already using 
gcc 2.6.3 for Linux I figured that I might see what kinda stuff 
I could do in dos (I am just a novice C++ programmer --- So far :)
Well at least it was easy to install (upgrade) gcc for Linux.  I 
have had no such luck with djgpp.  Compiling C programs is no 
problem, however, C++ programs are a different matter.  Below
is what I get.  Note that "gcc -x c++ -o hello.exe hello.cc" 
gets the same error as "gcc -o hello.exe hello.cc"

___
D:\DJGPP>gcc -o hello.exe hello.cc
hello.cc(.text+0x1c): undefined reference to `endl(ostream &)'
hello.cc(.text+0x26): undefined reference to `cout'
hello.cc(.text+0x2b): undefined reference to 
     `ostream::operator<<(char const *)'

hello.cc(.text+0x36): undefined reference to 
     `ostream::operator<<(ostream &(*)(ostream &))'

D:\DJGPP>gcc -o hello.exe hello.cc -lgpp
outfloat.c(.text+0x161): undefined reference to `_IO_dtoa'
___

I am using djgpp v2.0 Beta 1.0 on a 486/DX2-50 with 8M.  Gcc 
2.6.3, the latest binutils; even the version of ld referred to in 
the FAQ (Yes I even read some of the FAQ).  Any light to be shed on the 
situation would be appreciated.

Maybe I should have got a cross-compiler for Linux :)


Jake

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019