User forums > Help

compile D program error

(1/3) > >>

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.

wxLearner:

--- Quote from: Biplab on April 16, 2007, 11:11:18 am ---Can you compile a D program with MinGW??
--- End quote ---
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)

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

--- Quote from: wxLearner on April 16, 2007, 11:36:05 am ---Yes, you can.

--- End quote ---

Thanks for the link. :)

creatxr:
I use MinGW current version ( gcc-3.4.2 etc.)

Is there anything else that needed to configure ?

Navigation

[0] Message Index

[#] Next page

Go to full version