-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WinXP/DMD. D2. Just doesn't link with my "Hello, world" in debug mode (DEBUG = 1) #8
Comments
In addition: there is a strange behavior: It is realy strange! And yes, error in org.eclipse.swt.win32.win32.x86.lib lib. I tried to build with dwt-base without org.eclipse.* and it compiles fine. :( |
http://rghost.ru/39550561.view |
The error in the screenshot you posted is a known issue with the linker DMD uses. It happens on rare occasions and is extremely hard to debug. Optlink (the linker) is written in assembly which makes it even harder to debug. I don't fully understand, is it one error or two? When do you get the error from the screenshot and when do you get the other one. |
Okay, but what I should to do to be able programming?
My english is bad, but it happens always, when I tried to build. Does you means, that I should just reinstall OS?
it is one error. optlink throws message box and prints error description to console. |
I think I have to try to reproduce the error and see if I can fix it.
No, you need not to reinstall the OS. The problem is with the linker.
Ok, I'll see if I can reproduce it. Could you try the latest version of DMD, 2.060, and see if that makes any difference. I recommend installing DMD using DVM. It lets you install multiple versions of the compiler. |
This error reproduce other people. I think you will not have problems with reproducing. Please, fix it :(
I can't compile it with DMD 2.060 (errors in code, please, fix it too). But 2.059 have errors with linking. Sorry for my English. There is another guy, that may help you to reproduce the problem. |
And, yeah! Thanx for your help! :) |
I just update the repositories. Please update to the latest code and try again. Run this from the "dwt" directory:
|
I reinstall DMD2 compiler to version 2.060. Remove DWT folder and clone it again. Now, the DWT2 is compiled by DMD version 2.060, but in debug mode it is still not work. I found the simplest way to reproduce problem. Just write:
That's all! I hope, you will have this problem too. |
It seems, like I found temporary solution: just to build base and dwt separately:
In that case I can to debug my SWT Hello Worlds :) |
Good that you found a workaround. This is the problem with the linker. Sometimes it works if you pass the object files/libraries in a different order. It's very unpredictable. |
Hello! Sorry for my English. And I'm noob (double kill :) ).
I downloaded your lib (thanks a lot!), install Ruby. With help of Rake I built it:
C:\D\dmd2\src\dwt>rake DEBUG=1 base swt
Well! Since this moment I have di-files and libs.
I need two libs for Hello World compilation: dwt-base.lib and org.eclipse.swt.win32.win32.x86.lib. That files I copy from dwt/lib to dmd2/windows/lib.
Folders java (with port of java std lib) and org (with eclipse swt) I copy to folder of my project. That means, that my main.d, java and org are locating in same folder.
Whhooh! Let's build! :)
Yeeeeeeeeeh!!! :) That's work!!! :) And I'm realy glad, but... For debugging in D-IDE I should to generate debug info
Same with "-g" :( I just can't debug :(
That is verbose compilation log:
http://www.everfall.com/paste/id.php?7a6wqq94pysh
And this is "Hello, world'' code:
Should I to do?
The text was updated successfully, but these errors were encountered: