Forum

  Reply to this topicStart new topicStart Poll

> running DOS, make error
vijac
Posted: Oct 7 2004, 03:43 AM
Quote Post


New Member
*

Group: Members
Posts: 16
Member No.: 491
Joined: 4-September 04



The code below compiles but when linked gives the following error,

'Make error: Cannot create process'


;CODE


.model small
.stack
.data
message db "DOS assembly!!", "$"

.code

_main proc
mov ax, seg message
mov ds,ax

mov ah,09
lea dx,message
int 21h

mov ax,4c00h
int 21h
_main endp
end _main

Thanks for any help.


PMEmail Poster
Top
akyprian
Posted: Oct 7 2004, 04:21 AM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



Cannot create process means the linker is not found. You have to obtain the 16-bit linker (e.g. from iczelion's site), rename it to link16.exe and put it in your bin directory

please let me know if it helps,

Antonis
PMEmail PosterUsers Website
Top
vijac
Posted: Oct 13 2004, 10:48 AM
Quote Post


New Member
*

Group: Members
Posts: 16
Member No.: 491
Joined: 4-September 04



Downloaded linker16 file which went automatically to C:\WinAsmStudio\masm32\bin folder. Dos program assembles and does not link ('cannot create process' error). Downloaded linker again but to a separate masm32 folder on the C directory. Dos program now assembles, links but when run a WinAsm Studio message box appears saying 'Execution Failed!'.
My binary path is C:\masm32\Bin
PMEmail Poster
Top
akyprian
Posted: Oct 13 2004, 10:07 PM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



Hi,

To me 'Execution Failed!' means that the executable has not been produced. Probably some settings in the Make Options of your project OR you don't have a proper 16-bit linker. Attach is a working 16-bit DOS project based on your code. If you cannot compile it properly, please copy all text from your output window and paste it here.

I hope it helps,

Antonis

Attached File ( Number of downloads: 24 )
Attached File  Login/Register to be able to download
PMEmail PosterUsers Website
Top
vijac
Posted: Oct 26 2004, 05:54 PM
Quote Post


New Member
*

Group: Members
Posts: 16
Member No.: 491
Joined: 4-September 04



Your code worked fine. ;)
PMEmail Poster
Top
vijac
Posted: Oct 27 2004, 04:38 AM
Quote Post


New Member
*

Group: Members
Posts: 16
Member No.: 491
Joined: 4-September 04



It seems the problem is with my 16 bit linker. It was downloaded from iczelion's site. Do you know of an alternative source for this linker? :blink:
PMEmail Poster
Top
akyprian
Posted: Oct 28 2004, 02:23 AM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



Here it is. Unzip it in your bin folder and everything should be OK. Please let me know if everything is OK

Antonis

Attached File ( Number of downloads: 55 )
Attached File  Login/Register to be able to download
PMEmail PosterUsers Website
Top
vijac
Posted: Oct 28 2004, 04:39 PM
Quote Post


New Member
*

Group: Members
Posts: 16
Member No.: 491
Joined: 4-September 04



Downloaded 16 bit linker into bin folder and continue to get 'Execution Failed' in message box (for DOS codes).
My machine shut down last week because the power supply went bad. After installing a new power supply I noticed that my .wap files are giving a 'Cannot Create Process' error. They all worked fine before the power problem.

-v
PMEmail Poster
Top
akyprian
Posted: Oct 28 2004, 09:50 PM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



'Execution Failed!' means that the executable has not been produced probably because of some problem with your code. Please copy the text in the output window (View-Output window-right click-copy all out text) and paste it here.

Antonis
PMEmail PosterUsers Website
Top
vijac
Posted: Oct 29 2004, 08:09 AM
Quote Post


New Member
*

Group: Members
Posts: 16
Member No.: 491
Joined: 4-September 04



Error for DOS codes;

C:\masm32\Bin\ML /c /I"C:\masm32\Include" "C:\Documents and Settings\Administrator\My Documents\ASSEMBLY_PROGRAMS\prog4DOS.asm"

Microsoft ® Macro Assembler Version 6.14.8444
Copyright © Microsoft Corp 1981-1997. All rights reserved.

Assembling: C:\Documents and Settings\Administrator\My Documents\ASSEMBLY_PROGRAMS\prog4DOS.asm

C:\masm32\Bin\Link16 @"C:\Documents and Settings\Administrator\My Documents\ASSEMBLY_PROGRAMS\link.war"

Microsoft ® Incremental Linker Version 5.12.8078
Copyright © Microsoft Corp 1992-1998. All rights reserved.

"C:\Documents and Settings\Administrator\My Documents\ASSEMBLY_PROGRAMS\prog4DOS.obj;"
LINK16 : fatal error LNK1181: cannot open input file "C:\Documents and Settings\Administrator\My Documents\ASSEMBLY_PROGRAMS\prog4DOS.obj;"

Make finished. 0 error(s) occured

--------------------------------------------

error for .wap codes;

C:\masm32\Bin\ML /c /coff /Cp /nologo /I"C:\masm32\Include" "C:\Documents and Settings\Administrator\My Documents\ASSEMBLY_PROGRAMS\prog8.asm"

Assembling: C:\Documents and Settings\Administrator\My Documents\ASSEMBLY_PROGRAMS\prog8.asm

C:\masm32\Bin\Link @"C:\Documents and Settings\Administrator\My Documents\ASSEMBLY_PROGRAMS\link.war"

Make error: Cannot create process.

Make finished. 1 error(s) occured

-v
PMEmail Poster
Top
akyprian
Posted: Oct 29 2004, 08:29 AM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



I can see your obvious problems:

DOS Projects:
I can see that you have
Microsoft � Incremental Linker Version 5.12.8078
Copyright � Microsoft Corp 1992-1998. All rights reserved.

This is wrong. This is your 32-bit linker. RENAME IT TO link (NOT link16) so that it is used for your 32-bit projects
Now, download again the 16-bit linker from my previous post and unzip it to C:\masm32\Bin (DO NOT CHANGE ITS NAME-it is already link16)

I hope it works now!

Antonis
PMEmail PosterUsers Website
Top
vijac
  Posted: Oct 29 2004, 05:30 PM
Quote Post


New Member
*

Group: Members
Posts: 16
Member No.: 491
Joined: 4-September 04



I did as you said and all my programs are now working ok. Appreciate your help.

-v
PMEmail Poster
Top
guyenWinasm
  Posted: Jul 22 2005, 02:47 AM
Quote Post


New Member
*

Group: Members
Posts: 4
Member No.: 1386
Joined: 22-July 05



hi i have a code like this:

_STCK segment
dw 128 dup(?)
offStack label word

_STCK ends

_DATA segment

ascnum1 db '1234567890123456'
ascnum2 db '9172638567630327'
asclen dw 16
bcdnum1 db 8 dup(?)
bcdnum2 db 8 dup(?)
buffer db 9 dup(?)
bcdlen dw ?
_DATA ends

_TEXT segment

main proc near

mov ax, 0h
mov ds, ax

exit:
nop
jmp exit

main endp
_TEXT ends

end main

end



but has a some problam as vijac guy
the code seems to be assembling but doesn't seem to link and gives following error message:

\Masm32\Bin\ML /c /I"\Masm32\Include" "D:\winAsm\main.asm"

Microsoft ® Macro Assembler Version 6.14.8444
Copyright © Microsoft Corp 1981-1997. All rights reserved.

Assembling: D:\winAsm\main.asm

\Masm32\Bin\Link16 @"D:\winAsm\link.war"

Make error: Cannot create process.
Make finished. 1 error(s) occured.

Could anyone help
PMEmail Poster
Top
shoorick
Posted: Jul 22 2005, 06:42 AM
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 638
Member No.: 160
Joined: 22-June 04



last wafasm could...

this even better: use "assemble", "link" and "go all" from menu - do not run bats directly. wafasm should be loaded and path to masm bin dir should be updated in bats.

regards!

This post has been edited by shoorick on Jul 22 2005, 06:57 AM

Attached File ( Number of downloads: 8 )
Attached File  Login/Register to be able to download
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

 
MKPortal 1.0.1a A �2003-2004 - Tutti i diritti riservati