News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

compile D program error

Started by creatxr, April 16, 2007, 11:03:00 AM

Previous topic - Next topic

creatxr

I created a D program and tried to compile it .. (using GDC)
but it's error.
I saw the project's build options . in "search directories 's -> linker" it has already a path " E:\MinGW\lib"


-------------- Build: Debug in DDD ---------------
Linking console executable: bin\Debug\DDD.exe
E:\MinGW\bin\ld.exe: crt2.o: No such file: No such file or directory
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


Biplab

Can you compile a D program with MinGW?? AFAIK, the answer is No. So why are you using MinGW to compile and link it??

Use appropriate compiler and the problem should be solved.
Be a part of the solution, not a part of the problem.

wxLearner

Quote from: Biplab on April 16, 2007, 11:11:18 AM
Can you compile a D program with MinGW??
Yes, you can.
Quote from: http://dgcc.sourceforge.net/GDC works with GCC versions 3.3.x, 3.4.x, and 4.0.x.

    * Linux (tested on Fedora Core 5 x86 and PowerPC)
    * Mac OS X 10.3.x, 10.4.x
    * FreeBSD 5.2.1
    * Cygwin
    * MinGW
    * AIX (tested on 5.1)
It's compiled for MinGW gcc-3.4.5 and it works good with this version, but it doesn't work with the DW2-EH enabled gcc-3.4.5.

Biplab

Be a part of the solution, not a part of the problem.

creatxr

#4
I use MinGW current version ( gcc-3.4.2 etc.)

Is there anything else that needed to configure ?

Biplab

Did you install MinGW Runtime Package? If Not, please install it. :)
Be a part of the solution, not a part of the problem.

stahta01

#6
Quote from: wxLearner on April 16, 2007, 11:36:05 AM
It's compiled for MinGW gcc-3.4.5 and it works good with this version, but it doesn't work with the DW2-EH enabled gcc-3.4.5.

Most likely you need to recompile GDC using DW2-EH before it will work.
Mixing DW2-EH and the other method used by normal MinGW GCC do NOT mix well.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

creatxr

I found the problem.
I've to extract file "gdc-0.23-mingw32-gcc-3.4.5.tar.bz2" to MinGW 's home.
although, even if I 've set GDC 's search diretories and additional paths, it does not work.

but why? cound it be thought as a bug?

[attachment deleted by admin]

stahta01

Quote from: creatxr on April 16, 2007, 07:33:52 PM
I found the problem.
I've to extract file "gdc-0.23-mingw32-gcc-3.4.5.tar.bz2" to MinGW 's home.
although, even if I 've set GDC 's search diretories and additional paths, it does not work.

but why? cound it be thought as a bug?

No, it is NOT a bug, it is how you must install gdc for it to work. At least, an year ago it was how I read you had to install it.
Note, back them I read you have to install it into c:\MinGW for it to work even, but that did not seem to be needed.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

creatxr

I think that it should find the libs after I set the directories .
but it can't.
so I think it's a bug.

stahta01

Quote from: creatxr on April 16, 2007, 08:03:48 PM
I think that it should find the libs after I set the directories .
but it can't.
so I think it's a bug.

I do agree that it is a Documentation issue, but I do NOT think it is a software bug.
It would be nice if it works the way you want, but it might not be easy to do it.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

afb

Quote from: stahta01 on April 16, 2007, 07:45:27 PM
No, it is NOT a bug, it is how you must install gdc for it to work. At least, an year ago it was how I read you had to install it.
Note, back them I read you have to install it into c:\MinGW for it to work even, but that did not seem to be needed.

Eventually it was figured out: D.gnu:2252 "Compiler relocation with MinGW"