Re: Importing D libraries

2011-08-25 Thread Dainius (GreatEmerald)
Yeap, it's definitely a bug, and the temp file is in fact the library that I need. Anyway I'm trying to compile it on Windows now. However, there are two problems. First of all, the Windows Command Prompt does not expand wildcards, and DMD does not take it as an argument. Thus importing LuaD as a

Re: Importing D libraries

2011-08-19 Thread Dainius (GreatEmerald)
Anyone have any ideas about this? Or is it a bug? If I make RDMD chatty and listing all warnings, I get these lines: dmd -w -wi -lib -L-llua -I../include/LuaD -v -o- 'arco.d' -I'.' >arco.d.deps dmd -w -wi -lib -L-llua -I../include/LuaD -of'/tmp/.rdmd/home/dainius/src/arco.d.3C10152112FB7E5

Re: Importing D libraries

2011-08-10 Thread Dainius (GreatEmerald)
A question about RDMD - can it compile libraries as well? Since right now it compiles my library code fine, yet I get an .a file that is mere 72 bytes of size, so I'm pretty sure that it's not what I am supposed to be getting. The command I use to compile it is: rdmd --build-only -lib -L-llua

Re: Importing D libraries

2011-07-28 Thread Nick Sabalausky
"Andrew Wiley" wrote in message news:mailman.1941.1311837499.14074.digitalmars-d-le...@puremagic.com... > On Wed, Jul 27, 2011 at 11:46 PM, Jacob Carlborg wrote: > >> On 2011-07-28 03:23, Andrew Wiley wrote: >> >>> On Wed, Jul 27, 2011 at 2:10 AM, Jacob Carlborg >> > wrote: >

Re: Importing D libraries

2011-07-28 Thread Jacob Carlborg
On 2011-07-28 09:17, Andrew Wiley wrote: In traditional terms, cc1d is a compiler, including both the frontend and the backend. It takes parameters and spits out assembly. That's it. The GDC executable is the driver responsible for running cc1d to compile the source to assembly, as to assemble th

Re: Importing D libraries

2011-07-28 Thread Andrew Wiley
On Wed, Jul 27, 2011 at 11:46 PM, Jacob Carlborg wrote: > On 2011-07-28 03:23, Andrew Wiley wrote: > >> On Wed, Jul 27, 2011 at 2:10 AM, Jacob Carlborg > > wrote: >> >>Cannot be implemented in GDC. The driver/compiler/assembler/__** >> linker >>structure doesn'

Re: Importing D libraries

2011-07-27 Thread Jacob Carlborg
On 2011-07-28 03:23, Andrew Wiley wrote: On Wed, Jul 27, 2011 at 2:10 AM, Jacob Carlborg mailto:d...@me.com>> wrote: Cannot be implemented in GDC. The driver/compiler/assembler/__linker structure doesn't allow it. Why is that? Well, the short version is that GDC (the exec

Re: Importing D libraries

2011-07-27 Thread Andrew Wiley
On Wed, Jul 27, 2011 at 2:10 AM, Jacob Carlborg wrote: > Cannot be implemented in GDC. The driver/compiler/assembler/**linker >> structure doesn't allow it. >> > > Why is that? > > Well, the short version is that GDC (the executable) is not a compiler. GDC is a driver that runs cc1d to compile y

Re: Importing D libraries

2011-07-27 Thread Jacob Carlborg
Cannot be implemented in GDC. The driver/compiler/assembler/linker structure doesn't allow it. Why is that? -- /Jacob Carlborg

Re: Importing D libraries

2011-07-27 Thread Andrew Wiley
On Tue, Jul 26, 2011 at 11:38 PM, Jacob Carlborg wrote: > On 2011-07-26 21:34, Andrej Mitrovic wrote: > >> On 7/26/11, Nick Sabalausky wrote: >> >>> "Pelle"> wrote in >>> message >>> >>> news:op.vy74cwejzu79i9@pelle-**d2608-a1... >>> On Tue, 26 Jul 2011 13:06:56 +0200, Dainius (GreatEmeral

Re: Importing D libraries

2011-07-26 Thread Jacob Carlborg
On 2011-07-26 21:34, Andrej Mitrovic wrote: On 7/26/11, Nick Sabalausky wrote: "Pelle" wrote in message news:op.vy74cwejzu79i9@pelle-d2608-a1... On Tue, 26 Jul 2011 13:06:56 +0200, Dainius (GreatEmerald) wrote: I updated the DMD and tried RDMD, but still no luck. Linker errors galore. You

Re: Importing D libraries

2011-07-26 Thread Andrej Mitrovic
On 7/26/11, Nick Sabalausky wrote: > "Pelle" wrote in message > news:op.vy74cwejzu79i9@pelle-d2608-a1... >> On Tue, 26 Jul 2011 13:06:56 +0200, Dainius (GreatEmerald) >> wrote: >> >>> I updated the DMD and tried RDMD, but still no luck. Linker errors >>> galore. You can see all of them here: htt

Re: Importing D libraries

2011-07-26 Thread Nick Sabalausky
"Pelle" wrote in message news:op.vy74cwejzu79i9@pelle-d2608-a1... > On Tue, 26 Jul 2011 13:06:56 +0200, Dainius (GreatEmerald) > wrote: > >> I updated the DMD and tried RDMD, but still no luck. Linker errors >> galore. You can see all of them here: http://pastebin.com/C6cRVGKt > > You need to l

Re: Importing D libraries

2011-07-26 Thread Diego Canuhé
I compiled a test for LuaD a few days ago without problems. I think you need to link to the lua library On Tue, Jul 26, 2011 at 8:06 AM, Dainius (GreatEmerald) wrote: > I updated the DMD and tried RDMD, but still no luck. Linker errors > galore. You can see all of them here: http://pastebin.com

Re: Importing D libraries

2011-07-26 Thread Dainius (GreatEmerald)
Ah, that did the trick, thanks!

Re: Importing D libraries

2011-07-26 Thread Pelle
On Tue, 26 Jul 2011 13:06:56 +0200, Dainius (GreatEmerald) wrote: I updated the DMD and tried RDMD, but still no luck. Linker errors galore. You can see all of them here: http://pastebin.com/C6cRVGKt You need to link the library as well, try adding -L-llua (I think) to the command.

Re: Importing D libraries

2011-07-26 Thread Dainius (GreatEmerald)
I updated the DMD and tried RDMD, but still no luck. Linker errors galore. You can see all of them here: http://pastebin.com/C6cRVGKt

Re: Importing D libraries

2011-07-26 Thread Nick Sabalausky
"Andrew Wiley" wrote in message news:mailman.1914.1311673246.14074.digitalmars-d-le...@puremagic.com... > On Tue, Jul 26, 2011 at 2:02 AM, Dainius (GreatEmerald) > wrote: > >> I must be missing something incredibly obvious here, but I can't find >> out what it is... I'm trying to build a very sim

Re: Importing D libraries

2011-07-26 Thread Dainius (GreatEmerald)
Hmm, apparently it requires a strict compilation order. If I just add all .d files in no particular order, I get lots of linker errors, for example: LuaTest.o: In function `_D4luad4base9LuaObject9checkTypeFPT4luad1c3lua9lua_StateiiPxaZv': LuaD/luad/c/lua.d:(.text._D4luad4base9LuaObject9checkTypeFP

Re: Importing D libraries

2011-07-26 Thread Andrew Wiley
On Tue, Jul 26, 2011 at 2:02 AM, Dainius (GreatEmerald) wrote: > I must be missing something incredibly obvious here, but I can't find > out what it is... I'm trying to build a very simple test program for > LuaD, right now it simply imports the library. But it throws a linker > error for some rea

Importing D libraries

2011-07-26 Thread Dainius (GreatEmerald)
I must be missing something incredibly obvious here, but I can't find out what it is... I'm trying to build a very simple test program for LuaD, right now it simply imports the library. But it throws a linker error for some reason. Here's the program I'm trying to compile: import std.stdio;