From: Hudson R. <hud...@so...> - 2002-06-20 16:18:22
|
Hi David, > Looking at the trace, there appears to be a problem in reading the resource > file (ini file on Win32) 'htcobolrc'. > > The location of the resource file and pre-processor are set as follows. > > example: > set TCOB_OPTIONS_PATH=C:\gcc-2.95.2\share\htcobol > set TCOB_PP_PATH=C:\gcc-2.95.2\bin > > Are you sure that these paths are set, and if so that the current version > of the resource file is being used ? > > Hope this helps. > > BTW, which version of Win32 are you using ? I've had problems in the use of TinyCOBOL in mingw too. Info: - My Windows is Win98, second version. - I install the Mingw 1.0.1 version(gcc is 2.95.3 version) in following directory: c:\lang\mingw - My gcc is installed in following directory: c:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5 - My TinyCOBOL(0.58 version) is installed in following directories: c:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\bin (binaries) c:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\lib (libraries) c:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\include (includes db/getopt/pdcurses) c:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\doc (documentation) c:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\share\htcobol - I install the TinyCOBOL-devel in following directory: c:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\tinycobol-0.58 - In file maktc.bat, I set the paths in the following way: set TCOB_OPTIONS_PATH=C:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\share\htcobol set TCOB_PP_PATH=C:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\bin and after, I run it. But in the compilation, occurs the same errors described by Michel. See the errors: C:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\tinycobol-0.58\test.code\t01>make htcobol -c -P test01a.cob htcobol: *** WARNING - Unknown resource file option 'COMPILE_DEFAULT:'. Ignoring. htcobol: *** WARNING - Unknown resource file option 'NO_DEBUG_LINES:'. Ignoring. htcobol: *** WARNING - Unknown resource file option 'PGM_SUFFIX:'. Ignoring. htcobol: *** WARNING - Unknown resource file option 'ARX_CMD:'. Ignoring. htcobol: *** WARNING - Unknown resource file option 'RANLIBX_CMD:'. Ignoring. htcobol: *** WARNING - Unknown resource file option 'SHLIB_NAME_DEFAULT:'. Ignoring. gcc -g -o test01a test01a.o -lhtcobol -lm gcc: test01a.o: No such file or directory C:\LANG\MINGW\BIN\MAKE.EXE: *** [test01a.o] Error 1 If I comment this directives in TinyCOBOL resource file, the makefile show the following results: C:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\tinycobol-0.58\test.code\t01>make htcobol -c -P test01a.cob gcc -g -o test01a test01a.o -lhtcobol -lm gcc: test01a.o: No such file or directory C:\LANG\MINGW\BIN\MAKE.EXE: *** [test01a.o] Error 1 Note that the compiler use '-c' switch to compile. If I modify the makefile to compile using '-S' switch, it compile with no errors... C:\lang\mingw\lib\gcc-lib\mingw32\2.95.3-5\tinycobol-0.58\test.code\t01>make htcobol -S -P test01a.cob as -o test01a.o test01a.s gcc -g -o test01a.exe test01a.o -lhtcobol -lm In use of the '-c', '-x' and '-m' switch, occurs errors, and the final binary/library file isn't have had generated. I'm wrong in something? Thank you for your help! Hudson |