News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

RC: fatal error RC1110 : could not open rsrc.rc

Started by s0s0s, April 20, 2013, 08:20:10 AM

Previous topic - Next topic

s0s0s

hi
i'm beginner with masm32 and i can't compile any code in my editor, anytime i want to compile anything(even clear page )
this error comes up :   RC: fatal error RC1110 : could not open rsrc.rc
my OS is windows 7 (64bit)
Any help or advice would be greatly appriciated. 

Thanks.

dedndave

you are using a build method that requires a resource file
not sure what you are using - qEditor ?
but - select the proper build type for the file you are trying to assemble

these build method menu selections all point to batch files in qEditor
a couple weeks ago, i was working on a batch file that would handle all types of builds

http://masm32.com/board/index.php?topic=1770.0

but, let's see if we can get yours going, before we mess with an upgrade - lol

the basic steps are to assemble with MASM (aka ML.EXE)
then, to link with LINK.EXE

many projects also require resources to be linked with the program
so - that adds another step before LINK (RC.EXE is the resource compiler)

your project obviously does not require resources, and thus the error
you could probably create a minimal rsrc.rc file, and make it work   :P

s0s0s

honestly i'm new in assembly could you plz exactly explain what should i do with the stuff that you said on that link.
thanks. :icon_rolleyes:

dedndave

no problem
it will take a little patience to get started - lol

let's start with a very simple asm file, and name it MyProg.asm
        INCLUDE    \masm32\include\masm32rt.inc

        .DATA

szMsg   db 'Message',0
szTitle db 'Title',0

        .CODE

Start:  INVOKE  MessageBox,0,offset szMsg,offset szTitle,MB_OK
        INVOKE  ExitProcess,0

        END     Start


let's also start by assembling it from the command line, rather than a menu
so, open a console window and change to the same folder as the asm file
C:\> \masm32\bin\ML /c /coff MyProg.asm
that should create a file named MyProg.obj, a COFF object file
now, we want to link it
C:\> \masm32\bin\link /SUBSYSTEM:WINDOWS /OPT:NOREF MyProg.obj
that should create an EXE that runs and exits when you click the OK button

once you have succeeded with that, you know that ML, LINK, the INC files, and the LIB files are where they need to be

let us know what program you are using as an editor

hutch--

s0s0s,

It would probably help if you showed us the code you are trying to build.

s0s0s

code  worked exactly with the instruction you said dave .
it was my problem not masm32.
i think masm32 is more complicated than another assembler like fasm .
maybe i should take good tutorial about masm32 or back to the fasm .
my code that i wrote in editor it was very simple in the book that i'm reading for learn assembly language.
.MODEL FLAT ,STDCALL
.STACK
.DATA
.CODE
END

that's it.
but it did't work ,anyway, thanks for you're guidance and give me some rudimentary tutorial about masm32.

hutch--

This looks like old 16 bit code, what is the book ?

dedndave

well - it seems to be 32-bit, as it uses the Flat model
but, it isn't necessary to declare a .STACK section in 32-bit   :P
he is coming from FASM world - "Flat Assembler"

FASM is probably simpler, but i am guessing the macro capabilities of MASM are better
it takes some getting used to, if you come from some other assembler, of course

s0s0s

you know when you must call some library in assembly language is not very nice maybe it's very useful but for the beginners like me don't expect something like that ,anyway i think it's better for me work with both masm32 and fasm .
the book name is  : Programming Assembler Language by peter abel

Magnum

The functions are in the libraries and include files.

Just study the examples and you will learn it quickly.

In my opinion, masm is more versatile than fasm is.

Andy
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

Ghandi

As for learning how to use it, I didn't have a single bit of experience with programming before I picked up some ASM via MASM/OllyDbg and I honestly think it has been more straightforward and easy than any of the other languages I've dabbled with.

HR,
Ghandi

jameson

I AM JUST TRYING TO LEARN ASSEMBLY PROGRAM USING MASM 32 BUT I TOO IS FACING SIMILAR PROBLEM, CAN ANY BODY HELP ME OUT.
THAT IS fatal error RC1110 : could not open rsrc.rc

jj2007

If it says "could not open rsrc.rc", then it might be a good idea to check why it can't find the file rsrc.rc, right?

Besides,
1. We are very bad at reading your thoughts and/or your computer configuration from a distance, so it would be an excellent idea to explain in full detail what you have done before you saw this error. You can also zip your code and post it.
2. NO NEED TO SHOUT HERE, our ears are still OK.

Welcome to the Forum :icon14:

MichaelW

If you are working in the MASM32 Quick Editor, and you open a .asm file, and there is no rsrc.rc file in the directory of the .asm file, and you then select Compile Resource File from the Project menu, then the resource compiler will report:

RC : fatal error RC1110 : could not open rsrc.rc


AFAIK there is no other way to cause the resource compiler to run when there is no rsrc.rc file present in your working directory. For the Build All and Console Build All commands the resource compiler will run only if a rsrc.rc file is present. If you are a beginner, and your project does not include a resource file, you should probably start with the Assemble ASM file command. Then when you are able to assemble the file without error, try to create an EXE with the Console Link OBJ file command.

Well Microsoft, here's another nice mess you've gotten us into.

Ris

I have the same problem with this message:

QuoteRC : fatal error RC1110 : could not open rsrc.rc

From some reason program always put rsrc.rc as default resource file although I have my own resource file with the same name as asm file.

I'm working with RadASM