ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/21/18:51:37

From: bodfish AT austen DOT notis DOT com (John Bodfish)
Subject: Re: which lib for gnu string class?
To: jmccaski AT CS DOT Trinity DOT Edu (Scott McCaskill)
Date: Tue, 21 Feb 95 17:30:39 CST
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

Scott:
	Regarding your message:
> 
> Under dos, using djgpp, I include _string.h and 
> link in libgpp.a, but I get undefined reference errors (undefined String 
> class functions, that is).

	I've got a flex/bison program which uses the GNU String class,
and I've had no problem linking it. Here's what's in my bison source
(which is copied into the C++ source):

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <_string.h>


My link step is:

gcc -o asmtos.cof lexyy.o asmtos_t.o -lgpp


> I'm using 1.12m2.

So'm I. Could you send me a self-contained C++ source file that
illustrates the problem, along with your linkage step? I'd be happy
to try it here and see what happens.

John Bodfish
bodfish AT notis DOT com

- Raw text -


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