public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tonyb <tonylindee@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: Re: Problem using windres
Date: Fri, 07 Feb 2014 17:19:00 -0000	[thread overview]
Message-ID: <1391793551900-1009401.post@n5.nabble.com> (raw)
In-Reply-To: <1391725173713-1009189.post@n5.nabble.com>

Well, I managed to figure this out.  (I think.)  I'm compelled to post it
since I had such a hard time and could find the answer I needed in a couple
days of searching.

Can't compile & link in one step.  I was trying to use:  gcc prog7.c
resource.coff -I.
Couldn't make it work.
This does:

windres resource.rc resource.coff
gcc -c prog7.c -o prog7.o -I.
gcc prog7.o resource.coff -I.

Here's the makefile:

prog7.exe : prog7.o resource.coff
	gcc  prog7.o resource.coff -I. 

resource.coff : resource.rc 
	windres resource.rc resource.coff  

prog7.o : prog7.c
	gcc -c prog7.c -o prog7.o -I.

Please forgive my inelegant post; haven't figured out how to put the code in
those nice little scroll boxes others use.  (currently the least of my
problems!)




--
View this message in context: http://gcc.1065356.n5.nabble.com/Problem-using-windres-tp1009189p1009401.html
Sent from the gcc - Help mailing list archive at Nabble.com.

      parent reply	other threads:[~2014-02-07 17:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1391725173713-1009189.post@n5.nabble.com>
2014-02-06 22:24 ` Tonyb
2014-02-07 17:19 ` Tonyb [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1391793551900-1009401.post@n5.nabble.com \
    --to=tonylindee@yahoo.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).