www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/10/14:39:30

Date: Wed, 10 Aug 1994 09:13:46 -0700 (PDT)
From: Gordon Hogenson <ghogenso AT u DOT washington DOT edu>
Subject: Libg++ woes
To: djgpp AT sun DOT soe DOT clarkson DOT edu

I've got DJGPP 1.12 up and running and I've hit some snags.
What's going on with libg++ 2.6.0 ?  The following simple program:

#include <_string.h>

main()
{
	String s("Hello?");
}

when compiled as gcc strtst.cc -o strtst -lgpp, gives undefined
references:


Reading specs from e:/gcc/lib/specs
gcc version 2.6.0
 e:/gcc/bin/cpp.exe -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 
-D__cplusplus -D__GNUC_MINOR__=6 -Dunix -Di386 -DGO32 -DMSDOS -D__unix__ 
-D__i386__ -D__GO32__ -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__MSDOS 
strtst.cc f:/cc011942
GNU CPP version 2.6.0 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 e:/gcc/cplusinc
 e:/gcc/include
 /usr/local/lib/g++-include
 /usr/local/include
 /usr/local/go32/include
 /usr/local/lib/gcc-lib/go32/2.6.0/include
 /usr/include
End of search list.
 e:/gcc/bin/cc1plus.exe f:/cc011942 -quiet -dumpbase strtst.cc -version 
-o f:/cca11942
GNU C++ version 2.6.0 (80386, BSD syntax) compiled by GNU C version 2.6.0.
 e:/gcc/bin/as.exe -o f:/ccb11942 f:/cca11942
 e:/gcc/bin/ld.exe -o strtst e:/gcc/lib/crt0.o -Le:/gcc/lib f:/ccb11942 
-lgpp -lgcc -lc -lgcc
strtst.cc(.text+0x2b): undefined reference to `String::String(char const *)'
strtst.cc(.text+0x39): undefined reference to `String::~String(void)'

------------------------------------------

Has the String stuff moved out of libgpp.a or what?
Other libg++ classes work fine, including iostreams, Pixes, etc.

Gordon


- Raw text -


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