From: fsnijder AT elektron DOT et DOT tudelft DOT nl (FIM) Newsgroups: comp.os.msdos.djgpp Subject: Problems using djgpp with matcom (make) Date: Sun, 23 Mar 97 12:47:07 GMT Organization: Delft University of Technology Lines: 106 Message-ID: <5h38k5$oii$1@news.tudelft.nl> NNTP-Posting-Host: dokov.et.tudelft.nl Keyword: matcom make To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I am not an experienced djgpp user, I recently wanted to compile some matlab files I made. So, I downloaded the appropiate zip -files and extracted them : E:\DJGPP>dir/w Het volume in station E is DATADISK . Het volumenummer is 1D6F-15E9. Directory van E:\DJGPP. [.] [..] 00_INDEX.TXT WS_FTP.LOG DJDEV201.ZIP FAQ202B.ZIP BNU27B.ZIP GPP2721B.ZIP [BIN] DJGPP.ENV [INCLUDE] [INFO] [LIB] [MANIFEST] [TMP] [ZONEINFO] [FAQ] LGP271B.ZIP MAK375B.ZIP [LANG] OBC2721B.ZIP TXI390B.ZIP [GNU] 11 bestand(en) 6.187.969 bytes. 12 dir('s) 64.446.464 bytes beschikbaar. When done, nothing worked but I soon found out that I had to set some paths in the autoexec.bat : rem - By Windows 95 Network - C:\WINDOWS\net start mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi) mode con codepage select=850 SET INCLUDE=e:\djgpp\INCLUDE;e:\djgpp\lang\cxx\ SET LIB=e:\djggp\LIB;e:\MATCOM\ path=e:\djgpp\bin;c:\windows\command;c:\windows But this was not enough because : E:\MATCOM>make djgpp make dosmatlib_matcom 'CXX=gcc' 'CXXFLAGS= -w -O -fno-inline' LDFLAGS='-lgpp -lm ' 'EXENAME=../../matcom.exe' make.exe[1]: Entering directory `e:/matcom' cd src\matlib del *.o Kan het bestand niet vinden. (can't find file) make -f ../../makefile makematlib 'CXX=gcc' 'CXXFLAGS=-w -O -fno-inline' M_TYPE= double MLIB=1 'LDFLAGS=-lgpp -lm' make.exe[2]: Entering directory `e:/matcom/src/matlib' gcc -c -w -O -fno-inline -Dm_type=double -DMLIB=1 -o file_32.o file_32.cxx file_32.cxx:8: string.h: No such file or directory (ENOENT) make.exe[2]: *** [file_32.o] Error 1 make.exe[2]: Leaving directory `e:/matcom/src/matlib' make.exe[1]: *** [dosmatlib] Error 2 make.exe[1]: Leaving directory `e:/matcom' make.exe: *** [djgpp] Error 2 Note the errors. When I tried to compile a sample.m matlab file te result was : MATCOM Version 2.00 Copyright (c) 1995,1996 by MathTools LTD All rights reserved * EVALUATION version * You must order after 30 days. See order.txt or http://www.mathtools.com Using DJGPP : Target GO32 Skipping sample.m Skipping grad.m Compiling... In file included from grad.cpp:5: E:\MATCOM\/matlib.h:15: stdio.h: No such file or directory (ENOENT) E:\MATCOM\/matlib.h:16: stdlib.h: No such file or directory (ENOENT) E:\MATCOM\/matlib.h:604: iostream.h: No such file or directory (ENOENT) E:\MATCOM\/matlib.h:656: limits.h: No such file or directory (ENOENT) In file included from g_sample.cpp:5: E:\MATCOM\/matlib.h:15: stdio.h: No such file or directory (ENOENT) E:\MATCOM\/matlib.h:16: stdlib.h: No such file or directory (ENOENT) E:\MATCOM\/matlib.h:604: iostream.h: No such file or directory (ENOENT) E:\MATCOM\/matlib.h:656: limits.h: No such file or directory (ENOENT) gcc.exe: grad.o: No such file or directory (ENOENT) gcc.exe: g_sample.o: No such file or directory (ENOENT) Can anybody tell me what I have to do? Thank you for your time, Freddy Snijder Ad 1. My matcom dir looks like : E:\MATCOM>dir/w Het volume in station E is DATADISK . Het volumenummer is 1D6F-15E9. Directory van E:\MATCOM. [.] [..] [DOC] [EXAMPLES] [SRC] WMATCOM.EXE DMATCOM.EXE SETUP.EXE MATCOM.ICO MATWORD.ICO MATWRITE.ICO WCOMMAND.EXE WCOMMAND.PIF MATCOM.PIF INSTALL.BAT MAKEFILE MEXHELP.C MATWAVE.EXE VBRUN300.DLL MATLIB.H WINTTY.OBJ WINTTYC.OBJ MATLIB.DEF MATCOM.RSV README.TXT MATCOM.BAT MATCOM.INI MPATH INSTALL.PIF PATH.BAT MCPATH.BAT 26 bestand(en) 753.033 bytes. 5 dir('s) 64.446.464 bytes beschikbaar.