WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
What is FASM G
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

How to set current directory in WinAsm, Code assembles fine, but the linker can't find the object file

jj2007
Quote Post


New Member
*

Group: Members
Posts: 5
Member No.: 5757
Joined: 31-January 08


When I build C:\Masm32\examples\dialogs_later\calender\calender.asm, I get the following output:

CODE
\Masm32\Bin\ML /c /coff /Cp /Zi /Zd /I"\Masm32\Include" "C;\Masm32\examples\dialogs_later\calender\calender.asm"

Microsoft (R) Macro Assembler Version 6.15.8803
Copyright (C) Microsoft Corp 1981-2000.  All rights reserved.

Assembling: C:\Masm32\examples\dialogs_later\calender\calender.asm

***********
ASCII build
***********

\Masm32\Bin\Link @"C:\WinAsm\link.war"

Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

/SUBSYSTEM:CONSOLE /DEBUG /VERSION:4.0 "/LIBPATH:\Masm32\Lib" "C;\Masm32\examples\dialogs_later\calender\calender.obj" "/OUT:C;\WinAsm\Calender.exe"
LINK : fatal error LNK1181: cannot open input file "C;\Masm32\examples\dialogs_later\calender\calender.obj"

Make finished. 1 error(s) occured.


After a while, I found out that the .obj file is actually in C:\WinAsm

How can I convince WinAsm that it should be in the same folder as the .asm source? :rolleyes:

Sponsored Links
PMEmail Poster
Top
HSE
Quote Post


New Member
*

Group: Members
Posts: 1
Member No.: 65689
Joined: 22-May 15


I have no problem.

CODE
\Masm32\Bin\ML /c /coff /Cp /nologo /I"\Masm32\Include" "D:\masm32\examples\dialogs_later\calender\calender.asm"

Assembling: D:\masm32\examples\dialogs_later\calender\calender.asm

***********
ASCII build
***********


\Masm32\Bin\Link @"D:\masm32\examples\dialogs_later\calender\link.war"

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

/SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 "/LIBPATH:\Masm32\Lib" "D:\masm32\examples\dialogs_later\calender\calender.obj" "D:\masm32\examples\dialogs_later\calender\rsrc.res" "/OUT:D:\masm32\examples\dialogs_later\calender\calender.exe"

Make finished. 0 error(s) occured.

Idea: Check InitDir in WinAsm.ini

Note: You have "C;", should be "C:"
PMEmail Poster
Top
jj2007
Quote Post


New Member
*

Group: Members
Posts: 5
Member No.: 5757
Joined: 31-January 08


C; is correct in the original - I use a different drive and used find & replace to make it look simpler.

Anyway, moving the .wap file to the source folder fixed the problem :tup
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

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google