Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This works
- dmd \
- -Isrc \
- -I/usr/local/src/Derelict3/import/ \
- -L-L/usr/local/src/Derelict3/lib/ \
- -L-lDerelictUtil -L-lDerelictGL3 -L-lDerelictGLFW3 \
- -odbuild -ofbuild/triangle \
- src/*.d ../../src/*/*.d
- # This doesn't:
- ldc2 \
- -Isrc \
- -I/usr/local/src/Derelict3/import/ \
- -L-L/usr/local/src/Derelict3/lib/ \
- -L-lDerelictUtil -L-lDerelictGL3 -L-lDerelictGLFW3 \
- -odbuild -ofbuild/triangle \
- src/*.d ../../src/*/*.d
- # Output:
- Undefined symbols for architecture x86_64:
- "__D8derelict7opengl39functions7glClearPUNbkZv", referenced from:
- __D4test4main4Game8onRenderMFZv in main.o
- "__D8derelict5glfw35glfw38__ModuleZ", referenced from:
- __D4test4main8__ModuleZ in main.o
- __D7odyssey4core11application8__ModuleZ in application.o
- __D7odyssey4util9glfwdebug8__ModuleZ in glfwdebug.o
- "__D8derelict7opengl33gl38__ModuleZ", referenced from:
- __D4test4main8__ModuleZ in main.o
- __D7odyssey4core11application8__ModuleZ in application.o
- __D7odyssey4geom6buffer8__ModuleZ in buffer.o
- __D7odyssey4geom11vertexarray8__ModuleZ in vertexarray.o
- __D7odyssey6render6shader8__ModuleZ in shader.o
- __D7odyssey4util7gldebug8__ModuleZ in gldebug.o
- "__D8derelict5glfw39functions12glfwIsWindowPUNbPvZi", referenced from:
- __D7odyssey4core11application11Application3runMFZv in application.o
- "__D8derelict5glfw39functions14glfwPollEventsPUNbZv", referenced from:
- __D7odyssey4core11application11Application3runMFZv in application.o
- # ...
- "__D8derelict5glfw39functions18glfwGetDesktopModePUNbPS8derelict5glfw35types11GLFWvidmodeZv", referenced from:
- __D7odyssey4util9glfwdebug13writeGLFWInfoFZv in glfwdebug.o
- "__D8derelict5glfw39functions20glfwGetVersionStringPUNbZPxa", referenced from:
- __D7odyssey4util9glfwdebug13writeGLFWInfoFZv in glfwdebug.o
- ld: symbol(s) not found for architecture x86_64
- collect2: ld returned 1 exit status
- Error: linking failed:
- status: 1
Advertisement
Add Comment
Please, Sign In to add comment