From: Hudson R. <hud...@so...> - 2002-07-04 15:45:59
|
Hi David. > I can't duplicate the problem, so I do not know what is wrong. Ok... I get to duplicate the problem. The problem is this: When you install mingw, you must insert a mingw\bin directory in autoexec.bat file, and all binaries, libraries and other dependencies must be installed from mingw directory. See my hierarchy as the TinyCOBOL files are installed now in my Win98. c:\mingw\bin\htcobol.exe c:\mingw\bin\htcobolpp.exe c:\mingw\lib\libhtcobol.a c:\mingw\lib\libhtcobol2.a c:\mingw\share\htcobol\htcobolrc c:\mingw\share\htcobol\copybooks\screen.cpy c:\mingw\tinycobol-0.58-1\doc\announce c:\mingw\tinycobol-0.58-1\doc\authors c:\mingw\tinycobol-0.58-1\doc\copying c:\mingw\tinycobol-0.58-1\doc\copying.lib c:\mingw\tinycobol-0.58-1\doc\COPYRIGHT c:\mingw\tinycobol-0.58-1\doc\htcobf2f_man.html c:\mingw\tinycobol-0.58-1\doc\htcobol_man.html c:\mingw\tinycobol-0.58-1\doc\htcobolpp_man.html c:\mingw\tinycobol-0.58-1\doc\htcobf2f_man.txt c:\mingw\tinycobol-0.58-1\doc\htcobol_man.txt c:\mingw\tinycobol-0.58-1\doc\htcobolpp_man.txt c:\mingw\tinycobol-0.58-1\doc\install c:\mingw\tinycobol-0.58-1\doc\INSTALL.bin c:\mingw\tinycobol-0.58-1\doc\INSTALL.Win32 c:\mingw\tinycobol-0.58-1\doc\readme c:\mingw\tinycobol-0.58-1\doc\Readme.mingw32.txt A favor: Could you add the brazilian TinyCOBOL manfiles in mingw and cygwin TinyCOBOL Win32 distribuitions? See my hierarchy as the DB files are installed. c:\mingw\include\db.h c:\mingw\lib\libdb.a See my hierarchy as the PDCurses files are installed. c:\mingw\include\curses.h c:\mingw\include\panel.h c:\mingw\lib\pdcurses.a (libpdcurses.a or pdcurses.a?) c:\mingw\lib\panel.a (libpdpanel.a or panel.a?) See my hierarchy as the GetOpt files are installed. c:\mingw\include\getopt.h c:\mingw\lib\libgetopts.a See my hierarchy as the YACC files are installed. c:\mingw\bin\yacc193.exe I had installed in c:\mingw\lib\gcc-lib\mingw32\2.95.3-5 and not in c:\mingw, then, in compilation, the compiler haven't founding the file htcobolrc I don't know why, even which I did setting the TinyCOBOL variables in maktc.bat file I've setting the TinyCOBOL variables in maktc.bat file this way: @echo off set TCOB_OPTIONS_PATH=C:\mingw\lib\gcc-lib\mingw32\2.95.3-5\share\htcobol set TCOB_PP_PATH=C:\mingw\lib\gcc-lib\mingw32\2.95.3-5\bin Then, I did have modify the maktc.bat file to set the TinyCOBOL variables this way: @echo off set TCOB_OPTIONS_PATH=C:\mingw\share\htcobol set TCOB_PP_PATH=C:\mingw\bin Then, the compiler work correctly, without error/warning messages. > First check the version with the 'htcobol -V' command, to ensure that no > other versions are in the paths. Is this ok now. :-D A another problem is this.. Installing the auxiliar libraries (libdb, yacc, getopt, pdcurses), in special pdcurses, it is called pdcurses.a in zip file, but and in compilation, the gcc find the library -lpdcurses(libpdcurses.a), then, I did have which modify the name the file pdcurses.a to libpdcurses.a. Is this correct? Is need modify the name of panel.a file to libpdpanel.a? > Which version are you using, the one I compiled with gcc-2.95.2 and is > available on the web site, or did you compile it ? - My mingw version is 1.0.1 (Installed in c:\lang\mingw) - My windows is 98, second version. - My gcc version is 2.95.3. I don't compile TinyCOBOL. I'm been download the binaries in the web site, so I don't know with compile TinyCOBOL to be used in mingw32 environment. As you compile TinyCOBOL to be used in Mingw32 environment? As you use a configure script with mingw? I prefered compile TinyCOBOL to use binary versions it... I think to many people think the same thing.. You could help me? > Why not try this 'htcobol -v test01a.cob' and see what happens. After this modifications, the compilation is ok, but any programs in test.code not working, as in compilation as in run. To have a better description about this problems, I did test all programs and here is a list of problems for t00-t35 examples: t00/ Ok. t01/ Ok. t02/ Ok. t03/ Ok. t04/ Ok. t05/ Ok. t06/ error running test06v.cob. error compiling index01.cob. why index01.cob isn't declared in makefile? why test06s.cob isn't declared in makefile? t07/ Ok. t08/ error compiling test08u.cob error compiling test08g.cob error compiling test08ug.cob (core dumped) t09/ why anliste.cob isn't declared in makefile? error compiling move-test.cob why move-test.cob isn't declared in makefile? why subscripts.cob isn't declared in makefile? error linking upro.cob why upro.cob isn't declared in makefile? error compiling var+perform.cob (core dumped) why var+perform.cob isn't declared in makefile? t10/ Ok. t11/ Ok. t12/ Ok. t13/ Ok. t14/ Ok. t15/ Ok. t16/ Ok. t17/ Ok. t18/ Ok. t19/ Ok. t20/ error compiling test20a.cob (trace activated) error compiling test20a_at.cob (trace activated) error running test20c.cob error compiling test20e.cob (trace activated) t21/ error compiling test21.cob (trace activated) t22/ Ok. t23/ Ok. t24/ Ok. t24/ Ok. t25/ error linking libtestz.a. t26/ error compiling test27.cob. t27/ Ok. t28/ Ok. t29/ Ok. t30/ Ok. t31/ Ok. t32/ Ok. t33/ error linking libsubrots.so. t34/ error running aaaa.cob. t35/ error assembling test35.cob. In all makefiles which have a clear section and is used the section cleanbase in that clear section, where problems(Ex: makefile error number 13, 15) and not delete the files selected. Ex: When I typed 'make clean' it shows: MAKE: *** [cleanbase] Error 13 ou MAKE: *** [cleanbase] Error 13 ou MAKE: *** [cleanbase] Error 14 ou MAKE: *** [cleanbase] Error 15 Will be why is not found core? This problems isn't a problem from TinyCOBOL, and yes in Make, but you know why happen this problem? or this error is me? I'm wrong in something? Makefiles in mingw32 environment have a special configuration? Thanks for your help! Hudson |