Re: Compile X Window Manager

2013-05-20 Thread Samms
Hooray! :) gdc ./main.d /usr/include/d2/4.6/std/c/linux/X11/Xlib.d -o Refuja -L-L/usr/include/X11/ -L-lXlib -lX11

Re: Compile X Window Manager

2013-05-20 Thread evilrat
On Monday, 20 May 2013 at 16:28:09 UTC, Samms wrote: It resolved only small part of errors: gdc ./main.d /usr/include/d2/4.6/std/c/linux/X11/Xlib.d -o Refuja -L-L/usr/include/X11/ -L-lXlib /tmp/ccFcEKHG.o: In function `_Dmain': main.d:(.text+0x3f): undefined reference to `XOpenDisplay' main.d:

Re: Compile X Window Manager

2013-05-20 Thread Samms
It resolved only small part of errors: gdc ./main.d /usr/include/d2/4.6/std/c/linux/X11/Xlib.d -o Refuja -L-L/usr/include/X11/ -L-lXlib /tmp/ccFcEKHG.o: In function `_Dmain': main.d:(.text+0x3f): undefined reference to `XOpenDisplay' main.d:(.text+0x85): undefined reference to `XStringToKeysym'

Re: Compile X Window Manager

2013-05-20 Thread Iain Buclaw
On 20 May 2013 16:29, Samms wrote: > I not have installed Xlib.d - it is overwrite of Xlib.h for D language... > > > "in your app you use lib A you still need link B" > > I'm not idiot... > > > "Samms, do you have the correct xlib dev packages installed?" > > I'm not idiot... > I've RTFM. http:/

Re: Compile X Window Manager

2013-05-20 Thread Iain Buclaw
On 20 May 2013 17:00, Alexandr Druzhinin wrote: > 20.05.2013 22:29, Samms пишет: > >> I not have installed Xlib.d - it is overwrite of Xlib.h for D language... >> >> "in your app you use lib A you still need link B" >> >> I'm not idiot... >> >> "Samms, do you have the correct xlib dev packages ins

Re: Compile X Window Manager

2013-05-20 Thread Iain Buclaw
On 20 May 2013 16:29, Samms wrote: > > > > "So that would be -L/path/to/Xlib -lXlib." > > gdc ./main.d -o Refuja -L/usr/include/X11/ -lXlib > > /usr/bin/ld: cannot find -lXlib > collect2: ld returned 1 exit status > This only tells you that Xlib.so (or other name) does not exist on your system.

Re: Compile X Window Manager

2013-05-20 Thread Alexandr Druzhinin
20.05.2013 22:29, Samms пишет: I not have installed Xlib.d - it is overwrite of Xlib.h for D language... "in your app you use lib A you still need link B" I'm not idiot... "Samms, do you have the correct xlib dev packages installed?" I'm not idiot... "So that would be -L/path/to/Xlib -lXlib.

Re: Compile X Window Manager

2013-05-20 Thread Samms
I not have installed Xlib.d - it is overwrite of Xlib.h for D language... "in your app you use lib A you still need link B" I'm not idiot... "Samms, do you have the correct xlib dev packages installed?" I'm not idiot... "So that would be -L/path/to/Xlib -lXlib." gdc ./main.d -o Refuja -L/us

Re: Compile X Window Manager

2013-05-20 Thread Iain Buclaw
On May 20, 2013 9:45 AM, "Alexandr Druzhinin" wrote: > > 20.05.2013 12:32, Samms пишет: > >> I can really work with the linker, but here it just does not work ... :) >> That is why I'm asking for such stupid things... > > I didn't use gdc, so I don't know what would I do myself in this situation.

Re: Compile X Window Manager

2013-05-20 Thread Alexandr Druzhinin
20.05.2013 12:32, Samms пишет: I can really work with the linker, but here it just does not work ... :) That is why I'm asking for such stupid things... I didn't use gdc, so I don't know what would I do myself in this situation. :) didn't using -L-L/path/to/Xlib -L-lXlib help?

Re: Compile X Window Manager

2013-05-20 Thread evilrat
On Monday, 20 May 2013 at 08:32:44 UTC, Samms wrote: Yes - some library working with -L-L - but it not resolve "undefined reference to" Error,... Are you sure, that "undefined reference to" is problem only in linker? yes. just remember if you build lib A which uses lib B and in your app you

Re: Compile X Window Manager

2013-05-20 Thread Samms
Yes - some library working with -L-L - but it not resolve "undefined reference to" Error,... Are you sure, that "undefined reference to" is problem only in linker?

Re: Unittest tester.

2013-05-20 Thread Johannes Pfau
Am Tue, 14 May 2013 18:59:14 +0200 schrieb "Iain Buclaw" : > core.exception.AssertError@libphobos/src/std/conv.d(2524): http://dpaste.dzfl.pl/f995a4f3 Caused by a subtle difference when parsing floating point values in the compiler. ldc produces the same result as gdc. The asm generated for loa

Re: Compile X Window Manager

2013-05-20 Thread evilrat
On Monday, 20 May 2013 at 07:28:42 UTC, Samms wrote: But why this command: gdc ./main.d -o Refuja -L /usr/include/d2/4.6/std/c/linux/X11/ -l Xlib not work? i don't know gdc, but dmd is frontend so u work with frontend which pass linker flags with -L, that means if you need to tell linker

Re: Compile X Window Manager

2013-05-20 Thread Samms
But why this command: gdc ./main.d -o Refuja -L /usr/include/d2/4.6/std/c/linux/X11/ -l Xlib not work?

Re: Compile X Window Manager

2013-05-20 Thread evilrat
On Monday, 20 May 2013 at 03:54:47 UTC, Samms wrote: Paths: import std.c.linux.X11.Xlib; import std.c.linux.X11.X; /usr/include/d2/4.6/std/c/linux/X11 if you do such imports with 3rd party modules you could just add import search location for top level path(which in this case is /usr/includ