FreeBSD compile issue
Tyler
sprizzer at gmail.com
Thu Mar 27 07:29:23 PDT 2014
Hi,
I need to compile a D program in FreeBSD. I've followed the
FreeBSD instructions. So far, dmd is creating the obj file, but
there appears to be a problem with the linker. The error messages
are very cryptic. I was hoping someone might have an idea what
they mean and what I'm doing wrong here.
<CODE>
$ more hello.d
import std.stdio;
int main(string[] args)
{
writefln("Hello World\n");
return 0;
}
$ uname -a
FreeBSD freebsd 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1
14:37:25 UTC 2009
root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
$
$
$ dmd hello.d
/home/jordantk/dmd2/freebsd/bin32/../lib32/libphobos2.a(thread_105_713.o)(.text.thread_entryPoint+0xf3):
In function `thread_entryPoint':
: undefined reference to `__pthread_cleanup_push_imp'
/home/jordantk/dmd2/freebsd/bin32/../lib32/libphobos2.a(thread_105_713.o)(.text.thread_entryPoint+0x17b):
In function `thread_entryPoint':
: undefined reference to `__pthread_cleanup_pop_imp'
--- errorlevel 1
$
</CODE>
More information about the Digitalmars-d
mailing list