On 11/22/16 12:47 PM, Timoses wrote:
Result - Scenario 1
If I now run the project with "dub" it yields:
Generate target projectname (executable /Users/Timoses/programs/projectname/projectname projectname) Generate target dneo4j (staticLibrary /Users/Timoses/programs/projectname/dneo4j dneo4j) Performing "debug" build using dmd for x86_64. dneo4j ~master: target for configuration "osx" is up to date. Using existing build in /Users/Timoses/programs/projectname/dneo4j/.dub/build/osx-debug-posix.osx-x86_64-dmd_2072-CA8448A996762CE52501F2A7E2480226/. Copying target from /Users/Timoses/programs/projectname/dneo4j/.dub/build/osx-debug-posix.osx-x86_64-dmd_2072-CA8448A996762CE52501F2A7E2480226/libdneo4j.a to /Users/Timoses/programs/projectname/dneo4j Target '/Users/Timoses/programs/projectname/projectname/.dub/build/osx-debug-posix.osx-x86_64-dmd_2072-B74417139C39638134843B1B9E823EA2/projectname' doesn't exist, need rebuild. projectname ~master: building configuration "osx"... Using direct -l... flags for neo4jCon. dmd -c -of.dub/build/osx-debug-posix.osx-x86_64-dmd_2072-B74417139C39638134843B1B9E823EA2/projectname.o -debug -g -w -version=Have_projectname -version=Have_dneo4j -Isource/ -I../dneo4j/source/ source/app.d -vcolumns Linking... dmd -of.dub/build/osx-debug-posix.osx-x86_64-dmd_2072-B74417139C39638134843B1B9E823EA2/projectname .dub/build/osx-debug-posix.osx-x86_64-dmd_2072-B74417139C39638134843B1B9E823EA2/projectname.o ../dneo4j/libdneo4j.a -L-Llib -L-Llib -L-lneo4jCon -g ld: library not found for -lneo4jCon
This is the error right here. It's looking for libneo4jCon.a in the
library path, but cannot find it.
Note that generally the linker searches in the usual places (/usr/lib,
/lib, ...), and any location you pass via -L (e.g. the option -L-Llib in
your dub file).
Where is the lib file? Wherever it is, you need to add a linker search
path for it.
-Steve