News:

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

newbie framework and compile problem

Started by qxtianlong, September 25, 2006, 01:59:42 PM

Previous topic - Next topic

qxtianlong

hello anyone,I'm newbie to using the framework,in the Examples,Maybe found a Alpha_Blend_Texture tutorial,
I tried to compile the program when it complete,I run the *.exe file, It's can't open,found a error...

the error say: specficy merroy can't written...

ml.exe /c /coff /nologo /Fo
link.exe /SUBSYSTEM:WINDOWS /nologo /OUT

qxtianlong

I am already untie this difficult problem...
thanks all..

hitchhikr

I'm not sure to understand what you mean.
There's batch files for each example in each directory.

qxtianlong

#3
Quote
I'm not sure to understand what you mean.
There's batch files for each example in each directory.
What I mean is, if the link parameters are examples which release.bat wrote, it may well work,.
if I changed(this is the only------->/SUBSYSTEM:WINDOWS /nologo ), it would not work
you understand??

hitchhikr


qxtianlong

I am a (Masm32) beginner.Always uses the (Visual Stdio environment) to work.
Therefore has very many does not understand the place. :lol
Because it is the compiler default option.
For example (/SUBSYSTEM:WINDOWS/nologo).
I at that time did not know the link parameter lacks it.
For example(/MERGE:.data=.text /MERGE:.rdata=.text /SECTION:.text,ERW /IGNORE:4078).
The procedure makes a mistake on the movement. :(
Now adds on it,Translation,Link,Movement,All normal... :U
Finally tells you,I am a Chinese,My English is not very good,
Please as far as possible have a look!!! :clap:
You understood I said meaning? :green

PBrennick

The reason the linker will not link your file is because you have errors in the options.  The following is wrong:

Quote
For example (/SUBSYSTEM:WINDOWS/nologo)

That would never work.  This is what the pertinent to your question:

     /SUBSYSTEM:{NATIVE|WINDOWS|CONSOLE|WINDOWSCE|POSIX}[,#[.##]]
     /NOLOGO

So for a win32 program where you do not want the linker to display anything you would add these options to your link.exe

     /SUBSYSTEM:WINDOWS /NOLOGO

For a console app just change the word WINDOWS to CONSOLE in the above listed options. A full line may look somethink like the following:

     \masm32\bin\link.exe /SUBSYSTEM:WINDOWS /NOLOGO /LIBPATH:masm32\lib myfile.obj rsrc.res

I hope this helps you.  You do not need to use OUT for this purpose.  Any filename you put there
Paul



The GeneSys Project is available from:
The Repository or My crappy website

qxtianlong