http://d.puremagic.com/issues/show_bug.cgi?id=9510
Summary: Undefined symbols encountered Product: D Version: D2 Platform: x86_64 OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: art...@itssomething.ca --- Comment #0 from Arthur Castonguay <art...@itssomething.ca> 2013-02-14 07:16:38 PST --- Running the latest 2.061 compiler on my Mac, I have a simple program that imports std.stdio, does a bit of math and then writeln's a result. It compiles and runs fine on my Linux box. On the Mac, I'm getting: dmd -w -O -inline -noboundscheck p001.d Undefined symbols for architecture x86_64: "_D4core5bitop3bsrFNaNbmZi", referenced from: _D3std5array17__T8popFrontTAyaZ8popFrontFNaNbNeKAyaZv in p001.o _D3std5array16__T8popFrontTAaZ8popFrontFNaNbNeKAaZv in p001.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status Demangling these: _D4core5bitop3bsrFNaNbmZi pure nothrow int core.bitop.bsr(ulong) _D3std5array17__T8popFrontTAyaZ8popFrontFNaNbNeKAyaZv pure nothrow @trusted void std.array.popFront!(immutable(char)[]).popFront(ref immutable(char)[]) _D3std5array16__T8popFrontTAaZ8popFrontFNaNbNeKAaZv pure nothrow @trusted void std.array.popFront!(char[]).popFront(ref char[]) Interestingly, I'm not even calling using popFront directly in the program. It was working with a previous version of the compiler (2.060). I'd installed the latest since I was getting issues with a program that actually uses popFront and thought perhaps the newer version would address this issue. It appears there be dragons in this area. Yell if there's additional information you require. A skeleton of the program I have is: import std.stdio; immutable auto N = 10; auto func(int n) { auto d = N / n; return n * d * (d + 1)/2; } void main() { writeln(func(2)+func(7)-func(14)); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------