Re: Compile X Window Manager

2013-05-23 Thread Samms
The transcript of the C language immediately turns back into greeter screen after logging. (it show a black screen and immediately is closed)

Re: Compile X Window Manager

2013-05-23 Thread evilrat
On Wednesday, 22 May 2013 at 19:07:17 UTC, Samms wrote: Oh - no! :) Compilation is OK - but Manager not work. It is only overwrite od TinyWM: ... What is the problem? Thank you. there is a little chance anyone from community used this "manager", but maybe someone skilled with x11 would help i

Re: Compile X Window Manager

2013-05-22 Thread Samms
Oh - no! :) Compilation is OK - but Manager not work. It is only overwrite od TinyWM: import std.c.linux.X11.Xlib; import std.c.linux.X11.X; /* gdc ./main.d /usr/include/d2/4.6/std/c/linux/X11/Xlib.d -o refuja -lX11 */ int main() { Display *dpy; XWindowAttributes attr;

Re: Compile X Window Manager

2013-05-22 Thread Samms
On Tuesday, 21 May 2013 at 17:20:37 UTC, Mike Wey wrote: On 05/21/2013 03:06 PM, Samms wrote: On Tuesday, 21 May 2013 at 12:46:35 UTC, eles wrote: On Tuesday, 21 May 2013 at 12:36:27 UTC, Samms wrote: On Tuesday, 21 May 2013 at 08:35:09 UTC, eles wrote: On Tuesday, 21 May 2013 at 06:59:55 UTC

Re: Compile X Window Manager

2013-05-22 Thread eles
On Tuesday, 21 May 2013 at 17:20:37 UTC, Mike Wey wrote: On 05/21/2013 03:06 PM, Samms wrote: On Tuesday, 21 May 2013 at 12:46:35 UTC, eles wrote: On Tuesday, 21 May 2013 at 12:36:27 UTC, Samms wrote: On Tuesday, 21 May 2013 at 08:35:09 UTC, eles wrote: On Tuesday, 21 May 2013 at 06:59:55 UTC

Re: Compile X Window Manager

2013-05-22 Thread Mike Wey
On 05/21/2013 03:06 PM, Samms wrote: On Tuesday, 21 May 2013 at 12:46:35 UTC, eles wrote: On Tuesday, 21 May 2013 at 12:36:27 UTC, Samms wrote: On Tuesday, 21 May 2013 at 08:35:09 UTC, eles wrote: On Tuesday, 21 May 2013 at 06:59:55 UTC, Iain Buclaw wrote: On 21 May 2013 04:58, Samms wrote:

Re: Compile X Window Manager

2013-05-21 Thread Samms
On Tuesday, 21 May 2013 at 12:46:35 UTC, eles wrote: On Tuesday, 21 May 2013 at 12:36:27 UTC, Samms wrote: On Tuesday, 21 May 2013 at 08:35:09 UTC, eles wrote: On Tuesday, 21 May 2013 at 06:59:55 UTC, Iain Buclaw wrote: On 21 May 2013 04:58, Samms wrote: This problem is resolved... I kno

Re: Compile X Window Manager

2013-05-21 Thread Samms
On Tuesday, 21 May 2013 at 12:46:35 UTC, eles wrote: On Tuesday, 21 May 2013 at 12:36:27 UTC, Samms wrote: On Tuesday, 21 May 2013 at 08:35:09 UTC, eles wrote: On Tuesday, 21 May 2013 at 06:59:55 UTC, Iain Buclaw wrote: On 21 May 2013 04:58, Samms wrote: This problem is resolved... I kno

Re: Compile X Window Manager

2013-05-21 Thread eles
On Tuesday, 21 May 2013 at 12:36:27 UTC, Samms wrote: On Tuesday, 21 May 2013 at 08:35:09 UTC, eles wrote: On Tuesday, 21 May 2013 at 06:59:55 UTC, Iain Buclaw wrote: On 21 May 2013 04:58, Samms wrote: This problem is resolved... I know. I was offering a simpler solution (command line), t

Re: Compile X Window Manager

2013-05-21 Thread Samms
On Tuesday, 21 May 2013 at 08:35:09 UTC, eles wrote: On Tuesday, 21 May 2013 at 06:59:55 UTC, Iain Buclaw wrote: On 21 May 2013 04:58, Samms wrote: Basically, the command line should be: gdc ./main.d /usr/include/d2/4.6/std/c/linux/X11/Xlib.d -o Refuja -L/usr/include/X11/ -lXlib -lX11 wit

Re: Compile X Window Manager

2013-05-21 Thread eles
On Tuesday, 21 May 2013 at 06:59:55 UTC, Iain Buclaw wrote: On 21 May 2013 04:58, Samms wrote: Basically, the command line should be: gdc ./main.d /usr/include/d2/4.6/std/c/linux/X11/Xlib.d -o Refuja -L/usr/include/X11/ -lXlib -lX11 with the "-L/usr/include/X11/" part being almost useless (m

Re: Compile X Window Manager

2013-05-21 Thread Iain Buclaw
On 21 May 2013 04:58, Samms wrote: > 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 Though why on earth are you still using -L-L and -L-l ? -Ldir Add directory dir to the list of directories to be searched for -

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: 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

Re: Compile X Window Manager

2013-05-19 Thread 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...

Re: Compile X Window Manager

2013-05-19 Thread Samms
gdc ./main.d -o Refuja -lXlib/usr/bin/ld: cannot find -lXlib collect2: ld returned 1 exit status Etc. Nothing works...

Re: Compile X Window Manager

2013-05-19 Thread Samms
gdc ./main.d -o Refuja -L /usr/include/X11/ -l Xlib Not work...

Re: Compile X Window Manager

2013-05-19 Thread Alexandr Druzhinin
20.05.2013 10:51, Samms пишет: Yes (I'm programmer for 7 years.), but this is not work... (-l Xlib.h) Hmm... you ask unusual questions for a programmer with 7 year expirience. :) Try read gcc man about -l option - it says that after -l should be lib name without lib prefix (depends on OS) and

Re: Compile X Window Manager

2013-05-19 Thread Samms
Paths: import std.c.linux.X11.Xlib; import std.c.linux.X11.X; /usr/include/d2/4.6/std/c/linux/X11

Re: Compile X Window Manager

2013-05-19 Thread Samms
Yes (I'm programmer for 7 years.), but this is not work... (-l Xlib.h)

Re: Compile X Window Manager

2013-05-19 Thread Iain Buclaw
On May 19, 2013 9:30 PM, "Samms" wrote: > > On Sunday, 19 May 2013 at 20:28:13 UTC, Samms wrote: >> >> But what option do I use? I cannot find in the manual classical -l... And path - absolute or relative? > > > And - Xlib.h or Xlib.d or...? You seem to be going about this the illogical way. Do

Re: Compile X Window Manager

2013-05-19 Thread Samms
On Sunday, 19 May 2013 at 20:28:13 UTC, Samms wrote: But what option do I use? I cannot find in the manual classical -l... And path - absolute or relative? And - Xlib.h or Xlib.d or...?

Re: Compile X Window Manager

2013-05-19 Thread Samms
But what option do I use? I cannot find in the manual classical -l... And path - absolute or relative?

Re: Compile X Window Manager

2013-05-19 Thread Iain Buclaw
On 19 May 2013 20:58, Samms wrote: > Hi, > I found X.d and Xlib.d replacement for X11 library of C language. But it > returned many errors when compiling. Some problems was in non-static > declaration, but how can I resolve this problems: > > gdc ./main.d -o Refuja > /tmp/ccysZHrg.o: In function