Re: Link errors when compiling shared lib on windows

2017-11-01 Thread Jerry via Digitalmars-d
On Wednesday, 1 November 2017 at 16:02:37 UTC, Daniel Fitzpatrick wrote: On Wednesday, 1 November 2017 at 15:52:17 UTC, kinke wrote: On Wednesday, 1 November 2017 at 15:15:27 UTC, Daniel Fitzpatrick wrote: I am following this short tutorial on compiling a shared lib: https://wiki.dlang.org/Cal

Re: Link errors when compiling shared lib on windows

2017-11-01 Thread bachmeier via Digitalmars-d
On Wednesday, 1 November 2017 at 16:02:37 UTC, Daniel Fitzpatrick wrote: Oops, missed that! What i've tried is -shared -m64 i.d -shared -m64 -defaultlib=libphobos2.dll i.d Still seeing a lot of linker errors. Errors for the former: Are you using LDC? That's the only way I've been able to

Re: Link errors when compiling shared lib on windows

2017-11-01 Thread Daniel Fitzpatrick via Digitalmars-d
On Wednesday, 1 November 2017 at 15:52:17 UTC, kinke wrote: On Wednesday, 1 November 2017 at 15:15:27 UTC, Daniel Fitzpatrick wrote: I am following this short tutorial on compiling a shared lib: https://wiki.dlang.org/Call_D_from_Ruby_using_FFI Because it's on Windows I am using these compiler

Re: Link errors when compiling shared lib on windows

2017-11-01 Thread kinke via Digitalmars-d
On Wednesday, 1 November 2017 at 15:15:27 UTC, Daniel Fitzpatrick wrote: I am following this short tutorial on compiling a shared lib: https://wiki.dlang.org/Call_D_from_Ruby_using_FFI Because it's on Windows I am using these compiler options: -shared -m64 -defaultlib=libphobos2.so i.d Howev

Link errors when compiling shared lib on windows

2017-11-01 Thread Daniel Fitzpatrick via Digitalmars-d
I am following this short tutorial on compiling a shared lib: https://wiki.dlang.org/Call_D_from_Ruby_using_FFI Because it's on Windows I am using these compiler options: -shared -m64 -defaultlib=libphobos2.so i.d However, I am receiving rather a lot of linker errors. Not sure what else to

Re: Errors when compiling

2014-11-03 Thread Mike Parker via Digitalmars-d
On 11/3/2014 2:36 AM, James wrote: It's telling me that the libraries are in an invalid format. How can I get the correct ones ? I got those from the GLFW website Since you're compiling with -m64, make sure you have the 64-bit GLFW binaries and not the 32-bit. Also, you won't need your own co

Re: Errors when compiling

2014-11-02 Thread Rikki Cattermole via Digitalmars-d
On 3/11/2014 6:33 a.m., James wrote: Hello, I want to start using D for game development instead of C and C++. This is my code : ** import std.stdio; import glfw3; void main() { if(!glfwInit()) { write

Re: Errors when compiling

2014-11-02 Thread tcak via Digitalmars-d
On Sunday, 2 November 2014 at 17:36:37 UTC, James wrote: On Sunday, 2 November 2014 at 17:33:09 UTC, James wrote: It's telling me that the libraries are in an invalid format. How can I get the correct ones ? I got those from the GLFW website dmd -m64 main.d glfw3.d opengl32.lib glfw3.lib Y

Re: Errors when compiling

2014-11-02 Thread James via Digitalmars-d
On Sunday, 2 November 2014 at 17:33:09 UTC, James wrote: Hello, I want to start using D for game development instead of C and C++. This is my code : ** import std.stdio; import glfw3; void main() { if(!glfwIni

Errors when compiling

2014-11-02 Thread James via Digitalmars-d
Hello, I want to start using D for game development instead of C and C++. This is my code : ** import std.stdio; import glfw3; void main() { if(!glfwInit()) { writeln("Could not start GLFW3"); } GLFWwi