Bug 14655 – invalid mangling on the D side. it wants '.init', but using '.__init' for some reason

Status
RESOLVED
Resolution
LATER
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-06-05T19:00:20Z
Last change time
2022-02-17T13:00:36Z
Assigned to
No Owner
Creator
m3t4lukas

Comments

Comment #0 by l.wagner — 2015-06-05T19:00:20Z
Unable to initialize a struct that was defined in a C lib using. The struct is aligned, maybe that could be part of the problem. Console stuff: > dub build Building swa ~master configuration "application", build type debug. Compiling using dmd... Linking... .dub/build/application-debug-linux.posix-x86_64-dmd_2067-9F7D2AA2932D08FBB87BF228C1CF52CA/swa.o: In function `_Dmain': /home/lukas/workspaces/ceres/sample web application/source/app.d:18: undefined reference to `_D7libbson4bson10bson_types13_bson_error_t6__initZ' collect2: error: ld returned 1 exit status --- errorlevel 1 FAIL .dub/build/application-debug-linux.posix-x86_64-dmd_2067-9F7D2AA2932D08FBB87BF228C1CF52CA/ swa executable Error executing command build: dmd failed with exit code 1. ^^^ Terminated, exit code: 2 ^^^ Sample project: https://mega.nz/#!XQdQFBLD!iswFzH7VgDWh4BXThBmvI5HNutf28iFDum7aST912WU If you need anything feel free to ask Greetings m3t4lukas
Comment #1 by razvan.nitu1305 — 2022-02-17T13:00:36Z
The link has expired so this is not reproducible.