Bug 21083 – Linker Failed on MacOS 10.15.3

Status
RESOLVED
Resolution
WORKSFORME
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2020-07-28T09:32:35Z
Last change time
2021-01-20T08:15:01Z
Assigned to
No Owner
Creator
scientificworld

Comments

Comment #0 by scientificworld — 2020-07-28T09:32:35Z
When I wanted to compile a "hello world" program, it showed me this: Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executable (maybe you meant: __D4core6thread16_mainThreadStoreG312v, __D4core6thread6Thread7sm_mainCQBcQBaQw ) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: linker exited with status 1 OS Version: MacOS 10.15.3 D Compiler Version: DMD64 D Compiler v2.093.0 Clang Version: Apple clang version 11.0.3 (clang-1103.0.32.62)
Comment #1 by pro.mathias.lang — 2020-07-28T11:17:45Z
What code did you use ? This is a pretty standard error message for a missing `main` function.
Comment #2 by pro.mathias.lang — 2021-01-20T08:15:01Z
Closing as user error.