Simple I know, but could use some help compiling with make

2011-09-29 Thread Roderick Gibson
It's my first foray into the arcana of makefiles and command line compiling. My makefile looks like this: IMPORT = -IC:\Dlang\dmd2\src\ext\Derelict2\import LIB_PATHS = -LC:\Dlang\dmd2\src\ext\Derelict2\lib LIB_INCLUDES = DerelictSDL.lib DerelictGL.lib DerelictUtil.lib all: dmd src/main.

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Steven Schveighoffer
On Thu, 29 Sep 2011 14:23:41 -0400, Roderick Gibson wrote: It's my first foray into the arcana of makefiles and command line compiling. My makefile looks like this: IMPORT = -IC:\Dlang\dmd2\src\ext\Derelict2\import LIB_PATHS = -LC:\Dlang\dmd2\src\ext\Derelict2\lib LIB_INCLUDES = DerelictS

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Andrej Mitrovic
No it's not the same for Windows. On Windows you have to use -L+, e.g.: dmd myfile.d -L+path/to/libs mylib.lib

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Andrej Mitrovic
Documented here: http://prowiki.org/wiki4d/wiki.cgi?D__Tutorial/CompilingLinkingD#PassingsearchdirectoriesforstaticlibraryfilestoOptlink Damn what a big hashtag, lol.

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Steven Schveighoffer
On Thu, 29 Sep 2011 14:32:28 -0400, Andrej Mitrovic wrote: No it's not the same for Windows. On Windows you have to use -L+, e.g.: dmd myfile.d -L+path/to/libs mylib.lib That's because +path/to/libs is the search-path parameter for OPTLINK. -L goes before all linker parameters. The sam

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Andrej Mitrovic
On 9/29/11, Steven Schveighoffer wrote: > On Thu, 29 Sep 2011 14:32:28 -0400, Andrej Mitrovic > wrote: > >> No it's not the same for Windows. On Windows you have to use -L+, e.g.: >> >> dmd myfile.d -L+path/to/libs mylib.lib > > That's because +path/to/libs is the search-path parameter for OPTLIN

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Roderick Gibson
On 9/29/2011 11:52 AM, Andrej Mitrovic wrote: On 9/29/11, Steven Schveighoffer wrote: On Thu, 29 Sep 2011 14:32:28 -0400, Andrej Mitrovic wrote: No it's not the same for Windows. On Windows you have to use -L+, e.g.: dmd myfile.d -L+path/to/libs mylib.lib That's because +path/to/libs is

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Steven Schveighoffer
On Thu, 29 Sep 2011 15:28:56 -0400, Roderick Gibson wrote: On 9/29/2011 11:52 AM, Andrej Mitrovic wrote: On 9/29/11, Steven Schveighoffer wrote: On Thu, 29 Sep 2011 14:32:28 -0400, Andrej Mitrovic wrote: No it's not the same for Windows. On Windows you have to use -L+, e.g.: dmd myf

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Roderick Gibson
On 9/29/2011 1:02 PM, Steven Schveighoffer wrote: On Thu, 29 Sep 2011 15:28:56 -0400, Roderick Gibson wrote: On 9/29/2011 11:52 AM, Andrej Mitrovic wrote: On 9/29/11, Steven Schveighoffer wrote: On Thu, 29 Sep 2011 14:32:28 -0400, Andrej Mitrovic wrote: No it's not the same for Windows. O

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Andrej Mitrovic
Odd, I never have to do double backslashes. Maybe it's a problem with make. Personally I just use batch files, I kind of got used to them for simple projects. For everything else a D script is my handy tool.

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Nick Sabalausky
"Roderick Gibson" wrote in message news:j62d4i$1d8l$1...@digitalmars.com... > It's my first foray into the arcana of makefiles and command line > compiling. > > My makefile looks like this: > > IMPORT = -IC:\Dlang\dmd2\src\ext\Derelict2\import > LIB_PATHS = -LC:\Dlang\dmd2\src\ext\Derelict2\lib

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:j62msu$205t$1...@digitalmars.com... > "Roderick Gibson" wrote in message > news:j62d4i$1d8l$1...@digitalmars.com... >> It's my first foray into the arcana of makefiles and command line >> compiling. >> >> My makefile looks like this: >> >> IMPORT = -IC:\

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Steven Schveighoffer
On Thu, 29 Sep 2011 16:30:54 -0400, Roderick Gibson wrote: On 9/29/2011 1:02 PM, Steven Schveighoffer wrote: On Thu, 29 Sep 2011 15:28:56 -0400, Roderick Gibson wrote: On 9/29/2011 11:52 AM, Andrej Mitrovic wrote: On 9/29/11, Steven Schveighoffer wrote: On Thu, 29 Sep 2011 14:32:28 -040

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Roderick Gibson
On 9/29/2011 2:15 PM, Nick Sabalausky wrote: "Nick Sabalausky" wrote in message news:j62msu$205t$1...@digitalmars.com... "Roderick Gibson" wrote in message news:j62d4i$1d8l$1...@digitalmars.com... It's my first foray into the arcana of makefiles and command line compiling. My makefile looks

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Roderick Gibson
On 9/29/2011 2:19 PM, Steven Schveighoffer wrote: On Thu, 29 Sep 2011 16:30:54 -0400, Roderick Gibson wrote: On 9/29/2011 1:02 PM, Steven Schveighoffer wrote: On Thu, 29 Sep 2011 15:28:56 -0400, Roderick Gibson wrote: On 9/29/2011 11:52 AM, Andrej Mitrovic wrote: On 9/29/11, Steven Schvei

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Nick Sabalausky
"Roderick Gibson" wrote in message news:j62nvo$2237$1...@digitalmars.com... > On 9/29/2011 2:15 PM, Nick Sabalausky wrote: >> "Nick Sabalausky" wrote in message >> news:j62msu$205t$1...@digitalmars.com... >>> "Roderick Gibson" wrote in message >>> news:j62d4i$1d8l$1...@digitalmars.com... I

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Roderick Gibson
On 9/29/2011 2:39 PM, Nick Sabalausky wrote: "Roderick Gibson" wrote in message news:j62nvo$2237$1...@digitalmars.com... On 9/29/2011 2:15 PM, Nick Sabalausky wrote: "Nick Sabalausky" wrote in message news:j62msu$205t$1...@digitalmars.com... "Roderick Gibson" wrote in message news:j62d4i$

Re: Simple I know, but could use some help compiling with make

2011-10-01 Thread Lutger Blijdestijn
Roderick Gibson wrote: ... > Hmm, looks like it would be awesome, unfortunately it spits out a bunch > of "previous definition different" errors on the linker, in relation to > the libraries. Oh well, I seem to be able to get it working with dmd for > now. This could be caused by having two 'mai

Re: Simple I know, but could use some help compiling with make

2011-10-05 Thread Ola Ost
I had exactly this problem too, I asked on the Derelict forums: http://www.dsource.org/forums/viewtopic.php?t=5856&sid=8ebff671fafec3bd8962ddfceaf99eb8 At the moment I've resolved this by building Derelict with make, first a normal full build, then a second run using the cleandi target, which rem

Re: Simple I know, but could use some help compiling with make

2011-10-07 Thread Roderick Gibson
On 10/5/2011 7:46 AM, Ola Ost wrote: I had exactly this problem too, I asked on the Derelict forums: http://www.dsource.org/forums/viewtopic.php?t=5856&sid=8ebff671fafec3bd8962ddfceaf99eb8 At the moment I've resolved this by building Derelict with make, first a normal full build, then a second

Re: Simple I know, but could use some help compiling with make

2011-10-07 Thread Nick Sabalausky
"Ola Ost" wrote in message news:j6hqkh$lk0$1...@digitalmars.com... >I had exactly this problem too, I asked on the Derelict forums: > http://www.dsource.org/forums/viewtopic.php?t=5856&sid=8ebff671fafec3bd8962ddfceaf99eb8 > > At the moment I've resolved this by building Derelict with make, first