Thread overview | |||||
---|---|---|---|---|---|
|
March 08, 2015 Dub + Optlink == ??? | ||||
---|---|---|---|---|
| ||||
Since DDT (Eclipse plugin) uses Dub, I am trying to convert the DWT build instructions into Dub. Here is my current attempt: { "name" : "foo", "description" : "foo", "importPaths" : [ "d:/workspace/dwt/imp" ], "stringImportPaths" : [ "D:/workspace/dwt/org.eclipse.swt.win32.win32.x86/res" ], "lflags" : [ "-L+D:/workspace/dwt/lib", "-L/SUBSYSTEM:WINDOWS:4.0" ], "libs" : [ "org.eclipse.swt.win32.win32.x86", "dwt-base" ] } Unfortunately, this fails: ... OPTLINK : Warning 9: Unknown Option : WORKSPACE OPTLINK : Warning 9: Unknown Option : DWT OPTLINK : Warning 9: Unknown Option : LIB org.eclipse.swt.win32.win32.x86.lib Warning 2: File Not Found org.eclipse.swt.win32.win32.x86.lib dwt-base.lib Warning 2: File Not Found dwt-base.lib ... If I could figure out how to properly pass linker arguments in Dub, I think I could get this to work. Clearly, I am doing something wrong, but I don't know what. Any clues? Dave |
March 08, 2015 Re: Dub + Optlink == ??? | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Held | On 3/8/2015 3:55 PM, David Held wrote:
> Since DDT (Eclipse plugin) uses Dub, I am trying to convert the DWT
> build instructions into Dub. Here is my current attempt:
>
> {
> "name" : "foo",
> "description" : "foo",
> "importPaths" : [ "d:/workspace/dwt/imp" ],
> "stringImportPaths" : [
> "D:/workspace/dwt/org.eclipse.swt.win32.win32.x86/res" ],
> "lflags" : [
> "-L+D:/workspace/dwt/lib",
> "-L/SUBSYSTEM:WINDOWS:4.0"
> ],
> "libs" : [
> "org.eclipse.swt.win32.win32.x86",
> "dwt-base"
> ]
> }
> [...]
Figured it out. Even though lflags is a string[], the strings get concatenated with no spaces. :/ This works:
"lflags" : [
"-L+..\\dwt\\lib\\ -L/SUBSYSTEM:WINDOWS:4.0"
],
Dave
|
March 09, 2015 Re: Dub + Optlink == ??? | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Held | On Sunday, 8 March 2015 at 23:05:53 UTC, David Held wrote:
> On 3/8/2015 3:55 PM, David Held wrote:
>> Since DDT (Eclipse plugin) uses Dub, I am trying to convert the DWT
>> build instructions into Dub. Here is my current attempt:
>>
>> {
>> "name" : "foo",
>> "description" : "foo",
>> "importPaths" : [ "d:/workspace/dwt/imp" ],
>> "stringImportPaths" : [
>> "D:/workspace/dwt/org.eclipse.swt.win32.win32.x86/res" ],
>> "lflags" : [
>> "-L+D:/workspace/dwt/lib",
>> "-L/SUBSYSTEM:WINDOWS:4.0"
>> ],
>> "libs" : [
>> "org.eclipse.swt.win32.win32.x86",
>> "dwt-base"
>> ]
>> }
>> [...]
>
> Figured it out. Even though lflags is a string[], the strings get concatenated with no spaces. :/ This works:
>
> "lflags" : [
> "-L+..\\dwt\\lib\\ -L/SUBSYSTEM:WINDOWS:4.0"
> ],
>
> Dave
Seems like a bug on dubs part?
|
Copyright © 1999-2021 by the D Language Foundation