Mail Archives: djgpp/1996/10/21/22:38:23
From: | Georg Viehhauser <viehhaus AT suhep DOT phy DOT syr DOT edu>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Need Help: Where can I find <alloc.h>?
|
Date: | Mon, 21 Oct 1996 12:44:52 -0400
|
Organization: | Syracuse University, Syracuse, NY (USA)
|
Lines: | 151
|
Message-ID: | <326BA883.41C6@suhep.phy.syr.edu>
|
NNTP-Posting-Host: | suhep.phy.syr.edu
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Dear Gurus,
We have bought recently a multichannel analyzer card for one of our
386s. Now I would like to write some software to read out this card.
Together with the card they shipped a demo program (source code and
executables). The executeable works fine. They quote that the executable
was obtained using Turbo C++.
I modified the program and want to compile it withg djgpp, but he tells
me that he cannot find the file alloc.h. If I remove the #include
<alloc.h>, he compiles, but stops during linking with a number of
undefined references, which I guess are defined in alloc.h:
richgain.cc(.text+0x19b): undefined reference to `farmalloc'
richgain.cc(.text+0x5cd): undefined reference to `peek'
richgain.cc(.text+0x5e5): undefined reference to `peek'
richgain.cc(.text+0x603): undefined reference to `peekb'
richgain.cc(.text+0x67b): undefined reference to `MK_FP'
richgain.cc(.text+0x694): undefined reference to `movmem'
richgain.cc(.text+0x72d): undefined reference to `FP_SEG'
richgain.cc(.text+0x742): undefined reference to `FP_OFF'
There are a number of other header files included in the program like
stdio.h which give no problems. I tried also to find alloc.h on my disk
(even with preceding underscore) but I had no luck. I also tried follow
the instructions in the FAQ (take care that it's compiled as C++ etc.)
But nothing helped. Has anybody an idea where I can get this file?
Thanks. I append some info about the system.
Regards, Georg
***************************************
Autoexec.bat:
@echo off
C:\DOS6\SMARTDRV.EXE 2048 1024
PROMPT $p$g
SET TEMP=d:\TEMP
GOTO %CONFIG%
GOTO EXIT
:DEFAULT
PATH
C:\;C:\DOS6;D:\VIRUS;C:\WINDOWS;C:\WINDOWS\SYSTEM;C:\ZSUTIL;C:\ARC-ZIP;C:\GERBERUTIL;\PADS;c:\dataio\hiterm
rem SHARE.EXE /L:500 /F:5100
rem LH C:\DOS6\DOSKEY /BUFSIZE = 1024
LH C:\DOS6\MOUSE
set DJGPP=C:\DJGPP\DJGPP.ENV
set PATH=C:\DJGPP\BIN;%PATH%
GOTO EXIT
:CADD
PATH C:\DOS6;C:\;C:\ORCAD\SDT\;C:\ACAD;C:\ZSUTIL;C:\CMDS;C:\ARC-ZIP
SET PSPICELIB=D:\SPICEWIN\LIB
C:\DOS6\MOUSE
GOTO EXIT
:NET
PATH C:\;C:\DOS6;C:\windows;C:\net;D:\scbcsoft
lh C:\DOS6\mouse
cd net
call c:\net\net.bat
cd ..
goto exit
:EXIT
set PPWR=D:\padspwr\autorte;D:\padspwr\files;D:\padspwr\cam;pperform
win :
*********************************
config.sys:
REM Common stuff to be loaded
FILES=40
BUFFERS = 40
DEVICE=C:\DOS6\HIMEM.SYS
REM Set Up The Menu
[menu]
MENUCOLOR = 15,1
MENUDEFAULT = DEFAULT ,10
MENUITEM = DEFAULT , Windows
MENUITEM = CADD , Cadd
menuitem = NET , Network
[DEFAULT]
DOS = HIGH,UMB
DEVICE=C:\DOS6\EMM386.EXE NOEMS
SHELL=C:\DOS6\COMMAND.COM C:\DOS6\ /p
[CADD]
DOS = HIGH
DEVICE=C:\DOS6\EMM386.EXE 7168
SHELL=C:\DOS6\COMMAND.COM C:\DOS6\ /p
[NET]
DEVICE=C:\DOS6\EMM386.EXE noems x=ec00-efff
dos=high,umb
SHELL=C:\DOS6\COMMAND.COM C:\DOS6\ /e:1024 /p
files=70
buffers=30
stacks=9,256
lastdrive=g
DEVICEHIGH=C:\DOS6\ansi.sys
[COMMON]
************************************************
result of go32-v2:
DPMI memory available: 3984kB
DPMI swap space available: 16972 kB
************************************************
environ.lst:
CONFIG=DEFAULT
COMSPEC=C:\DOS6\COMMAND.COM
PROMPT=$p$g
TEMP=d:\TEMP
DJGPP=C:\DJGPP\DJGPP.ENV
PATH=C:\DJGPP\BIN;C:\;C:\DOS6;D:\VIRUS;C:\WINDOWS;C:\WINDOWS\SYSTEM;C:\ZSUTIL;C:\ARC-ZIP;C:\GERBERUTIL;\PADS;C:\DATAIO\HIT
PPWR=D:\padspwr\autorte;D:\padspwr\files;D:\padspwr\cam;pperform
windir=C:\WINDOWS
************************************************
and the result of gcc -v:
Reading specs from c:/djgpp/lib\specs
gcc version 2.7.2
c:/djgpp/bin\cpp.exe -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2
-D__cplusplus -D__GNUC_MINOR__=7 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2
-DDJGPP_MINOR=0 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__
-D__DJGPP__=2 -D__DJGPP_MINOR__=0 -D__unix -D__i386 -D__GO32 -D__MSDOS
-D__DJGPP=2 -D__DJGPP_MINOR=0 richgain.cpp c:/djgpp/tmp\ccbaaaaa
GNU CPP version 2.7.2 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lang/cxx
c:/djgpp/include
c:/djgpp/contrib/grx20/include
/usr/local/lib/g++-include
/usr/local/include
/usr/local/go32/include
/usr/local/lib/gcc-lib/go32/2.7.2/include
/usr/include
End of search list.
richgain.cpp:9: alloc.h: No such file or directory (ENOENT)
- Raw text -