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.
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
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
Documented here:
http://prowiki.org/wiki4d/wiki.cgi?D__Tutorial/CompilingLinkingD#PassingsearchdirectoriesforstaticlibraryfilestoOptlink
Damn what a big hashtag, lol.
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
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
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
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
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
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.
"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
"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:\
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
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
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
"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
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$
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
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
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
"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
21 matches
Mail list logo