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
 

Object output directory for linker, the linker expects the obj files to be in the same directory as the asm files.

rxantos
Quote Post


New Member
*

Group: Members
Posts: 4
Member No.: 11514
Joined: 20-August 08


Sponsored Links
Hi,

I figure out how to make masm put the obj files in a directory, by adding /FoMyDirectory\ to the command line.

However, I see no way of telling the linker to look for the obj files in that directory.

Could it be possible to add an option for a object directory name?

)(

PMEmail Poster
Top
AvidStudent
Quote Post


Extremely Active Member
******

Group: Members
Posts: 234
Member No.: 17238
Joined: 10-January 09


From My MCSL Project:

MASM32.BAT
CODE
SET INCLUDE=C:\MASM32\INCLUDE;C:\MASM32\MACROS
SET LIB=C:\MASM32\LIB
SET ML=/c /coff /Cp /nologo
SET PATH=C:\MASM32\BIN

DEBUG.BAT
CODE
@ECHO OFF
CALL MASM32.BAT
ML /Zi /Zd /Fo".\BIN\MCSL.OBJ" /FR".\BIN\MCSL.SBR" /Fl".\BIN\MCSL.TXT" MCSL.ASM
LINK /SUBSYSTEM:WINDOWS /RELEASE /DEBUG /pdb:".\BIN\MCSL.PDB" /DLL /DEF:".\MISC\MCSL.DEF" /OUT:".\BIN\MCSL.DLL" ".\BIN\MCSL.OBJ"
PAUSE

BUILD.BAT
CODE
@ECHO OFF
CALL MASM32.BAT
ML /Fo".\BIN\MCSL.OBJ" MCSL.ASM
LINK /SUBSYSTEM:WINDOWS /RELEASE /DLL /DEF:".\MISC\MCSL.DEF" /OUT:".\BIN\MCSL.DLL" ".\BIN\MCSL.OBJ"
PAUSE


That's how you set output directories, Perform Normal or Debug Build without an IDE.
PMEmail PosterUsers WebsiteYahoo
Top
akyprian
Quote Post


Administrator
******

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


QUOTE
That's how you set output directories, Perform Normal or Debug Build without an IDE.


... or use WinAsm Studio and let it run your batch file.
PMEmail PosterUsers Website
Top
shoorick
Quote Post


Extremely Active Member
******

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


...even better with BATCH mode of FASM add-in
PMEmail PosterUsers Website
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