Author Topic: Problem with compiling resources  (Read 5681 times)

Destroyer

  • Guest
Problem with compiling resources
« on: January 10, 2006, 08:37:58 am »
Project   : ZeroCool
Compiler  : GNU GCC Compiler (called directly)
Directory : D:\Projects\ZeroCool\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: resources.rc
windres.exe: invalid option -- J
Usage: windres.exe [option(s)] [input-file] [output-file]
 The options are:
  -i --input=<file>            Name input file
  -o --output=<file>           Name output file
  -I --input-format=<format>   Specify input format
  -O --output-format=<format>  Specify output format
  -F --target=<target>         Specify COFF target
     --preprocessor=<program>  Program to use to preprocess rc file
     --include-dir=<dir>       Include directory when preprocessing rc file
  -D --define <sym>[=<val>]    Define SYM when preprocessing rc file
  -v --verbose                 Verbose - tells you what it's doing
     --language=<val>          Set language when reading rc file
     --use-temp-file           Use a temporary file instead of popen to read
                               the preprocessor output
     --no-use-temp-file        Use popen (default)
  -h --help                    Print this help message
  -V --version                 Print version information
FORMAT is one of rc, res, or coff, and is deduced from the file name
extension if not specified.  A single file name is an input file.
No input-file is stdin, default rc.  No output-file is stdout, default rc.
windres.exe: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec tekhex binary ihex
Process terminated with status 1 (0 minutes, 2 seconds)

What can I do to fix this problem?
 

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Problem with compiling resources
« Reply #1 on: January 10, 2006, 08:41:34 am »
I bet you're using an old version of windres.

Compare your windres --version with this one (mine):

Quote from: windres --version
GNU windres 2.16.91 20050827
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

If yours is older, consider updating :)

PS: MinGW's package that comes with windres: binutils

Destroyer

  • Guest
Re: Problem with compiling resources
« Reply #2 on: January 10, 2006, 09:25:55 am »
I bet you're using an old version of windres.

Compare your windres --version with this one (mine):

If yours is older, consider updating :)

PS: MinGW's package that comes with windres: binutils

Yes, it helps.
Thank you Ceniza for reply.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Problem with compiling resources
« Reply #3 on: January 10, 2006, 09:45:58 am »
If you don't want to upgrade binutils, search the forum. The solution has been posted many times...
Be patient!
This bug will be fixed soon...