[Issue 14655] New: invalid mangling on the D side. it wants '.init', but using '.__init' for some reason

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 5 12:00:20 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14655

          Issue ID: 14655
           Summary: invalid mangling on the D side. it wants '.init', but
                    using '.__init' for some reason
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: l.wagner at m3t4l-server.de

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

--


More information about the Digitalmars-d-bugs mailing list