www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14655] New: invalid mangling on the D side. it wants '.init',


          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 puremagic.com
          Reporter: l.wagner 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 --
Jun 05 2015