User forums > Help
Compile resource file with OpenWatcom 1.4
Laslie:
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.
TDragon:
Disclaimer: I've never used OpenWatcom before.
--- Quote from: Laslie on March 06, 2006, 08:28:26 am ---wrc.exe tools2.rc -fo=.objs\tools2.res -i=-iC:\watcom\include
Fatal Error! 60: Can't find file "tools2.exe".
--- End quote ---
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.
Trikko:
--- Quote from: Laslie 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.
--- End quote ---
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!
severach:
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"
Laslie:
Thank you very much!
I set resource compiler macro (add -r option) and in this way good work!
Navigation
[0] Message Index
[*] Previous page
Go to full version