View previous topic :: View next topic |
Author |
Message |
wishmaster
Joined: 23 Sep 2004 Posts: 4
|
Posted: Thu Sep 23, 2004 6:38 am Post subject: *.COM Files - ct.obj |
|
|
Hello, i've just started with D. I wanted to link my d program as a *.COM file. But just i want to link my program i get an error, "Error... ct.obj not found". The problem is that i cant find ct.obj. Can somebody send me this file ? And theres another amusing problem, allways if i try to compile a d file i have to put the object.d and the std directory in the same directory as my source file. Because the compiler doesnt find these files. How to fix that problem ?
Thanks for help
Bye. |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Thu Sep 23, 2004 8:41 am Post subject: Re: *.COM Files - ct.obj |
|
|
wishmaster wrote: | I wanted to link my d program as a *.COM file. | DMD only creates *.exe executables.
wishmaster wrote: | But just i want to link my program i get an error, "Error... ct.obj not found". The problem is that i cant find ct.obj. | I've never heard of that file. Are you trying to compile a file called ct.d? It might help if you provided some code.
wishmaster wrote: | And theres another amusing problem, allways if i try to compile a d file i have to put the object.d and the std directory in the same directory as my source file. Because the compiler doesnt find these files. How to fix that problem ? | Perhaps your dmd\bin\sc.ini file is missing or corrupted. Here's what mine looks like: Code: | [Version]
version=7.51 Build 020
[Environment]
LIB="?@P?\..\lib";\dm\lib
DFLAGS="-I?@P?\..\src\phobos"
LINKCMD=?@P?\..\..\dm\bin\link.exe
| Have you even been able to compile a sample program in dmd\samples\d? |
|
Back to top |
|
|
wishmaster
Joined: 23 Sep 2004 Posts: 4
|
Posted: Thu Sep 23, 2004 9:34 am Post subject: |
|
|
You can create a .COM file with dmc -mt
Can you try it ? |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Thu Sep 23, 2004 11:18 am Post subject: |
|
|
wishmaster wrote: | You can create a .COM file with dmc -mt
Can you try it ? | Who said anything about DMC? I wouldn't be surprised at all if you could create a .COM program with Digital Mar's C compiler. But DMC != DMD.
Is this a D question of a C question?
Hey, if I'm wrong and you can create a .COM program using DMD, feel free to tell me how. |
|
Back to top |
|
|
wishmaster
Joined: 23 Sep 2004 Posts: 4
|
Posted: Thu Sep 23, 2004 11:33 am Post subject: |
|
|
Ohh, sorry
I thought dmc is a D compiler, too. |
|
Back to top |
|
|
sean
Joined: 24 Jun 2004 Posts: 609 Location: Bay Area, CA
|
Posted: Thu Sep 23, 2004 3:44 pm Post subject: |
|
|
hehe nope. DMC = Digital Mars C compiler. DMD = Digital Mars D compiler. |
|
Back to top |
|
|
|