|
From: Jürgen W. <ju...@ya...> - 2005-10-10 22:12:26
|
Hi, OK, I finally got tinycobol-0.63 to work on windows/Mingw, thanks to Fernando Wuthstrack. The road to success: ran MinGW-4.1.0.exe [x] The minimal set of packages to build C/C++ [x] the full set of compiler packages [x] The full set of utility packages ran msysDTK-1.0.1.exe (probably unnecessary, as this is allready installed by the previous step, is it?) (I find the MingW install page highly confusing with its many, many different packages). Downloaded pdcurses-2.6.0-2003.07.21-1.exe installed to E:\MinGW, so it got to E:\MinGW\lib Unzipped db-1.85-ac.mingw32.zip db.h to e:\mingw\include libdb.a to e:\mingw\lib Tried make: E:\tinycobol-0.63\test.code\t00>make gcc -g -o teste teste.o -L/usr/local/lib -L/usr/lib -L../../lib -lhtcobol -lncurses -ldb -ldl -lm gcc.exe: no input files make: *** [teste] Error 1 By chance tried mingw32-make.exe and the error went away. (Why ????) in E:\MinGW\lib copied libpdcurses.a to libncurses.a Next had to remove the -ldl from the makefile and add -L/TinyCOBOL and finally I had my first Cobol exe. Maybe somebody could put this report on the TC Wiki. The TinyCOBOL should include some typical samples, so the user can quickly have success in compiling and running the samples. Maybe even a somewhat bigger program? I discovered only by chance that there are test sources in the TC source package. Thanks, Jürgen PS: The compiler breaks in test15 E:\tinycobol-0.63\test.code\t15>mingw32-make.exe htcobol -c -P -I../copybooks -I. test15.cob htcobol -c -P -I../copybooks -I. test15a.cob gcc -g -I/usr/local/include -o test15b.o -c test15b.c gcc -g -o test15 test15.o test15a.o test15b.o -L/usr/lib -L/TinyCOBOL -L../../ lib -lhtcobol -ldb -lm gcc -g -I/usr/local/include -o test15d.o -c test15d.c gcc -g -o test15d test15d.o test15a.o -L/usr/lib -L/TinyCOBOL -L../../lib -lht cobol -ldb -lm htcobol -c -P -I../copybooks -I. test15e.cob gcc -g -I/usr/local/include -o test15f.o -c test15f.c gcc -g -o test15e test15e.o test15f.o -L/usr/lib -L/TinyCOBOL -L../../lib -lhtc obol -ldb -lm htcobol -c -P -I../copybooks -I. test15g.cob mingw32-make.exe: *** [test15g.o] Error -1073741819 __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |