News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

About fda2 (Create .obj from .asm)

Started by elmo, October 19, 2010, 05:36:38 AM

Previous topic - Next topic

elmo

I found an example in \masm32\examples\poasm\fda2
It can create FileName.obj from FileName.asm

But when I try to create FileName.exe from FileName.obj with:
link /SUBSYSTEM:WINDOWS /LIBPATH:C\masm32\lib FileName.obj

in command prompt' screen, appear:

LINK:error LNK2001: unresolved external symbol _WinMainCRTStartup
FileName.exe: fatal error LNK1120:1 unresolved externals

Could you help me to solve this problem? Thank you.

So, when I want run  FileName.exe,  I only do this:
   szText Dire,"C:\masm32\bin\ FileName.exe"
   invoke WinExec,ADDR Dire,SW_NORMAL   ;FILE MUST EXE,COM, BAT or PIF

Thank you
Fritz Gamaliel
be the king of accounting programmer world!

jj2007

Line 3 of the source:

         Build this example from the PROJECT menu with MAKEIT.BAT

BogdanOntanu

#2
FritzCAT22,

Copy cat of MASM32 examples and doing no thinking of your own will not get you very far.

From previous experience this kind of road leads to frustration. Yes, you can pretend to create something by using other people's examples and asking for help for each breathe you take but in the end such an construct will not fly

Please try to think with your own mind and show to us that you have make progress after the last question and you did make your own "homework" and wrote your own code and concepts (even if they are not so advanced yet)

You might consider asking questions only after you have done all that you could to understand and solve the "problem" yourself.

Otherwise if you try to build up a castle out of copy cat of examples and help code you get from good people then you will end up with a pile of cards that will fall down at the first blow of wind and a lot of frustration.
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

Vortex

Hi Fritz,

Concerning the usage of the fda tool, here is a quick example for you :


include fdaSample.inc

EXTERN  szString:DWORD   ; declare the external string

.code

start:

    invoke  StdOut,ADDR szString

    invoke  ExitProcess,0

END start


Building the sample project :


\masm32\fda string.txt string.obj szString

\masm32\bin\ml /c /coff fdaSample.asm
\masm32\bin\polink /SUBSYSTEM:CONSOLE fdaSample.obj string.obj