[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Using resource files with tcc. How do I do that?

From: Knut Flock
Subject: Re: [Tinycc-devel] Using resource files with tcc. How do I do that?
Date: Sat, 24 Nov 2007 12:42:22 -0800 (PST)


Mike <address@hidden> wrote:
KHMan wrote:
> Knut Flock wrote:
>> For a few days now I have tried to figure out how to use resource files
>> to make a simple windows application with tcc.
>> My last try went like this:
>> [code]
>> tcc -c app.c
>> rc appRC.rc
>> tcc -o app.exe app.o appRC.RES
>> [/code]
>> The last command returned:
>> appRC.RES:1: unrecognized file type
> tcc can't do that now. You need to read grischka's notes in the
> Win32 directory and the tcc documentation.
How can you insert anything into the ".rsrc" section? Is it possible
with TCC yet? (I was having trouble following the C code.)

Tinycc-devel mailing list

 As I understand from the posts to my question tcc is not able to do it yet. The quote you have there is what tried.
Using LinkRes2Exe works. At least with simple resource stuff.
 The process I got working, to get a exe from my sample code, went like this:
    tcc testResources.c
    rc.exe testResources.rc
    LinkRes2Exe testResources.RES testResources.exe
I added this LinkRes2Exe required line of code at the top of my file before I compiled it:
    int dummy __attribute__((section(".rsrc")));
I have cmd wrapers setting my include and lib paths.

Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]