command-line resource compiler/linker?

Status
Not open for further replies.

bugbum1

Ars Scholae Palatinae
893
Citrus538 is asking for a resource compiler.... the resource compiler makes binaries out of .rc (resource scripts) for things like dialogs, menus, string tables etc.

i've always used the microsoft resource compiler, but it looks like LCC includes a resource compiler too:

1) Code generator (compiler, assembler, linker, resource compiler, librarian)

LCC-Win32: a free compiler system for Windows
 

bash666

Ars Legatus Legionis
24,417
The MS one is free with teh Platform SDK.


F:\Program Files\Microsoft SDK>rc /?


Microsoft (R) Windows (R) Resource Compiler, Version 5.1.2264.1 - Build 2264
Copyright (C) Microsoft Corp. 1985-1998. All rights reserved.

Usage: rc [options] .RC input file
Switches:
/r Emit .RES file (optional)
/v Verbose (print progress messages)
/d Define a symbol
/u Undefine a symbol
/fo Rename .RES file
/l Default language ID in hex
/i Add a path for INCLUDE searches
/x Ignore INCLUDE environment variable
/c Define a code page used by NLS conversion
/w Warn on Invalid codepage in .rc (default is an error)
/y Don't warn if there are duplicate control ID's
/n Append null's to all strings in the string tables.
Flags may be either upper or lower case
 

Citrus538

Ars Legatus Legionis
12,722
DOH

After doing a little more research, I realized that the GNU Binutils (which I have) include "windres" which is a utility which compiles .rc files into GCC object files (*.o). These files can then be linked into the EXE when compiling the source.

Hopefully other people who are doing the whole "teach yourself win32 free" thing will benefit from my little adventure : )

FYI, I'm using the following tools/packages:
Stuff on this page (Win32 API headers, GCC, mingw32, binutils)
EditPlus (wonderful editor, can be configured to execute commands like "gcc *.cc -o result.exe" with a single keystroke)
Borland Win32 API Reference (a little outdated, but free and still accurate)
TheForger's Win32 API Tutorial
 

bash666

Ars Legatus Legionis
24,417
Originally posted by Citrus538:
DOH

After doing a little more research, I realized that the GNU Binutils (which I have) include "windres" which is a utility which compiles .rc files into GCC object files (*.o). These files can then be linked into the EXE when compiling the source.

Hopefully other people who are doing the whole "teach yourself win32 free" thing will benefit from my little adventure : )


Well, it teach yourself Win32 for free thing is important, then far and away the best thing to do is to download teh Windows Core SDK. IT has samples, a complete reference, and all teh tools you need to write C/C++(compiler,linker,resource compuler:), degugger). Now if you just want to learn platform agnostic C/C++, there may be better free tools out there.

-Kevin
 

Citrus538

Ars Legatus Legionis
12,722
Bash: Thanks for the advice. I actually didn't even know there was a free Windows SDK until you mentioned it. Since I'm on a modem, though, and only have one phone line. . .I probably will not be downloading 300+ MB any time soon : )

I'm just tinkering with Win32 right now, and Borland's API reference is currently "good enough". All of my current development tools took less than 15MB of downloading.
 
Status
Not open for further replies.