Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jun 1998 13:29:08 -0700
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        Thomas Dean <tomdean@ix.netcom.com>
Cc:        nanbor@cs.wustl.edu, freebsd-current@FreeBSD.ORG
Subject:   Re: Undefined symbol `xxx' referenced (use libc_r ?) 
Message-ID:  <199806132029.NAA26299@rah.star-gate.com>
In-Reply-To: Your message of "Sat, 13 Jun 1998 13:02:34 PDT." <199806132002.NAA04932@ix.netcom.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Yes, it works..

{hasty} cat foox.c
#include <sys/types.h>
#include <sys/stat.h>

int main() {
  mkdir("./xxyy",0777);
}

{hasty} g++ -pthread  foox.c -o foox 
{hasty} ./foox
{hasty} g++ foox.c -o foox -lc_r
{hasty} ./foox


> Try something simple, like:
> 
> // xx.cc
> 
> #include <sys/types.h>
> #include <sys/stat.h>
> 
> int main() {
>   mkdir("./xxyy",0777);
> }
> 
> then,
> 
> g++ xx.cc -o xx -lc_r
> 
> Does this work?
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806132029.NAA26299>