Author Topic: Compile resource file with OpenWatcom 1.4  (Read 9634 times)

Offline Laslie

  • Multiple posting newcomer
  • *
  • Posts: 13
Compile resource file with OpenWatcom 1.4
« on: March 02, 2006, 10:22:50 am »
Hi all,

First sorry for my bad english.
I'm a newbie C::B user. I use OW some years back without error. When I try OW project (win32 DLL) under C::B and compile it I get an error:
-------------- Build: default in Tools2 ---------------
Compiling: tools2.rc
Fatal Error! 60: Can't find file "tools2.exe".
Process terminated with status -1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
Why exe when it is a DLL? Of course I set all compiler and linker setting to project and I use latest nightly build.
The resource file (tools2.rc) contain only file version info.
« Last Edit: March 02, 2006, 11:03:54 am by Laslie »

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Compile resource file with OpenWatcom 1.4
« Reply #1 on: March 02, 2006, 01:07:35 pm »
Hello,

Just a suggestion. Did you try to search in the forum about your problem? I am quite sure that you can find some helpful answers.

Best wishes,
Michael

Offline Laslie

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Compile resource file with OpenWatcom 1.4
« Reply #2 on: March 02, 2006, 02:37:42 pm »
Hi,

Yes I did try but I did not find solution my problem.

Offline Laslie

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Compile resource file with OpenWatcom 1.4
« Reply #3 on: March 03, 2006, 02:20:33 pm »
Anybody? :?:

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Compile resource file with OpenWatcom 1.4
« Reply #4 on: March 03, 2006, 03:07:44 pm »
Having Code::Blocks show the entire command line will help to pinpoint the issue. In the "Other" tab of your global compiler settings (Settings -> Compiler & Debugger), change Compiler logging to "Full command line". Then try to rebuild the project, and post the contents of the Build Log tab here.

I should add this to my sig...
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline Laslie

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Compile resource file with OpenWatcom 1.4
« Reply #5 on: March 06, 2006, 08:28:26 am »
Hi,

Here is the full log from CodeBlocks:
-------------- Build: default in Tools2 ---------------
wcl386.exe -c -bd -dBUILD_DLL -d__NT__ -mf -bt=nt -bcl=nt -fp5 -6r  -iC:\watcom\h -iC:\watcom\h\nt  -fo=.objs\main.obj main.cpp
Open Watcom C++32 Optimizing Compiler Version 1.4
Portions Copyright (c) 1989-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
main.cpp: 40 lines, included 39541, no warnings, no errors
Open Watcom C/C++32 Compile and Link Utility Version 1.4
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
       wpp386 main.cpp  -bd -dBUILD_DLL -d__NT__ -mf -bt=nt -bt=nt -fp5 -6r -iC:\watcom\h -iC:\watcom\h\nt -fo=.objs\main.obj
wcl386.exe -c -bd -dBUILD_DLL -d__NT__ -mf -bt=nt -bcl=nt -fp5 -6r  -iC:\watcom\h -iC:\watcom\h\nt  -fo=.objs\md5c.obj md5c.cpp
Open Watcom C++32 Optimizing Compiler Version 1.4
Portions Copyright (c) 1989-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
md5c.cpp: 294 lines, included 56, no warnings, no errors
Open Watcom C/C++32 Compile and Link Utility Version 1.4
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
       wpp386 md5c.cpp  -bd -dBUILD_DLL -d__NT__ -mf -bt=nt -bt=nt -fp5 -6r -iC:\watcom\h -iC:\watcom\h\nt -fo=.objs\md5c.obj
wrc.exe tools2.rc -fo=.objs\tools2.res -i=-iC:\watcom\include
Fatal Error! 60: Can't find file "tools2.exe".
Process terminated with status -1 (0 minutes, 1 seconds)
0 errors, 0 warnings

I hope you can help me.

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Compile resource file with OpenWatcom 1.4
« Reply #6 on: March 06, 2006, 04:24:11 pm »
Disclaimer: I've never used OpenWatcom before.

wrc.exe tools2.rc -fo=.objs\tools2.res -i=-iC:\watcom\include
Fatal Error! 60: Can't find file "tools2.exe".
This is your trouble line. Unless I misread it, wrc.exe is trying to link your .rc file up with an executable somehow. I searched for documentation on wrc and couldn't find any, so the question of whether the correct syntax is being used is left to someone else. If you can get along without tools2.rc in your DLL project, remove it from the project files; else, consider precompiling it or using a custom build command.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Trikko

  • Guest
Re: Compile resource file with OpenWatcom 1.4
« Reply #7 on: March 06, 2006, 04:51:16 pm »
Hi,

Here is the full log from CodeBlocks:
-------------- Build: default in Tools2 ---------------
wcl386.exe -c -bd -dBUILD_DLL -d__NT__ -mf -bt=nt -bcl=nt -fp5 -6r  -iC:\watcom\h -iC:\watcom\h\nt  -fo=.objs\main.obj main.cpp
Open Watcom C++32 Optimizing Compiler Version 1.4
Portions Copyright (c) 1989-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
main.cpp: 40 lines, included 39541, no warnings, no errors
Open Watcom C/C++32 Compile and Link Utility Version 1.4
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
       wpp386 main.cpp  -bd -dBUILD_DLL -d__NT__ -mf -bt=nt -bt=nt -fp5 -6r -iC:\watcom\h -iC:\watcom\h\nt -fo=.objs\main.obj
wcl386.exe -c -bd -dBUILD_DLL -d__NT__ -mf -bt=nt -bcl=nt -fp5 -6r  -iC:\watcom\h -iC:\watcom\h\nt  -fo=.objs\md5c.obj md5c.cpp
Open Watcom C++32 Optimizing Compiler Version 1.4
Portions Copyright (c) 1989-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
md5c.cpp: 294 lines, included 56, no warnings, no errors
Open Watcom C/C++32 Compile and Link Utility Version 1.4
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
       wpp386 md5c.cpp  -bd -dBUILD_DLL -d__NT__ -mf -bt=nt -bt=nt -fp5 -6r -iC:\watcom\h -iC:\watcom\h\nt -fo=.objs\md5c.obj
wrc.exe tools2.rc -fo=.objs\tools2.res -i=-iC:\watcom\include
Fatal Error! 60: Can't find file "tools2.exe".
Process terminated with status -1 (0 minutes, 1 seconds)
0 errors, 0 warnings

I hope you can help me.

I have the same problem (and others):
http://forums.codeblocks.org/index.php?topic=2546.0

I think it's a compiler-support related error!

Offline severach

  • Multiple posting newcomer
  • *
  • Posts: 44
Re: Compile resource file with OpenWatcom 1.4
« Reply #8 on: March 07, 2006, 01:55:37 am »
WRC defaults to injecting a .rc into an EXE file. Switch -r is required to get it to compile a .rc to a linkable .res file. I also add $includes to eliminate the compile errors. Since Compiler settings Import&Export are both a bad idea *and* non working, here is the line from my .reg file.

"Compile Win32 resource file"="$rescomp -r -fo=$resource_output $includes $res_includes $file"

Offline Laslie

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Compile resource file with OpenWatcom 1.4
« Reply #9 on: March 07, 2006, 08:16:32 am »
Thank you very much!
I set resource compiler macro (add -r option) and in this way good work!