Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Allegro and Open Watcom Install Problems

This thread is locked; no one can reply to it. rss feed Print
Allegro and Open Watcom Install Problems
Alysher
Member #8,406
March 2007
avatar

several days ago, alomost a week ago i stumbled upon allegro and realized that i would be able to use it for DOS-32bit Graphics games, but the realized that i needed other things for it as well. My Personal computer(not the one im currently on) is a 486 ~75Mhz running Windows 95 i also have Microsoft Developer Studio 6.0(i.e. Microsoft Visual C++ 6.0) and was able to install allegro for it without any problems.

but now I have serious Problems trying to install the Watcom version for DOS, and i don't know why!

this is what i have installed in regaurds to allegro and its dependent programs.

microsoft windows 95
bnu216b.zip
djdev203b.zip
gcc410b.zip
mak3791b.zip
sed415b.zip
open watcom 1.6
allegro 4.2.1

when i type set at a dos prompt i get this:

CONFIG=WINDOWS
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
PROMPT=$l$p$g
INCLUDE=C:\WATCOM\H;C:\WATCOM\H\NT
WATCOM=C:\WATCOM
EDPATH=C:\WATCOM\EDDAT
DJGPP=C:\DJGPP\DJGPP.ENV
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:;C:\;C:\DISK;C:\DJGPP\BIN;C:\TEMP;C:\PRGS\PICTVIEW;C:\PRGS\PKWARE;C:\WATCOM\BINNT;C:\WATCOM\BINW
TEMP=C:\temp
TMP=c:\temp
windir=C:\WINDOWS
BLASTER=A220 I10 D0
CMDLINE=mem /a/c/p

when i type make at the command prompt every thing runs fine until this point:

obj/watcom/runner.exe wcc386 \\ demo/demo.c @ -w1 -bt=dos4g -5s -ox -zq -fr=nul -I. -I./include -fo=obj/watcom/alleg/demo.obj
demo\display.h(7): Error! E1115: Incomplete enum declaration

when i type make install it runs perfect and installs the library

when i type make install DEBUGMODE=1 at the cp it runs until this point:

misc\mdhelper.bat C:\WATCOM\lib386

<D:\ALLEGRO>
misc\mdhelper.bat C:\WATCOM\h

<D:\ALLEGRO>
misc\mdhelper.bat C:\WATCOM\h\allegro

<D:\ALLEGRO>
misc\mdhelper.bat C:\WATCOM\h\allegro\platform

<D:\ALLEGRO>
misc\mdhelper.bat C:\WATCOM\h\allegro\internal

<D:\ALLEGRO>
misc\mdhelper.bat C:\WATCOM\h\allegro\inline

<D:\ALLEGRO>
obj/watcom/runner.exe wcc386 \\ src/dos/dfile.c @ -dALLEGRO_SRC -DDEBUGMODE=1 -w1 -bt=dos4g -5s -s -d2 -zq -fr=nul -I. -I./include -fo=obj/watcom/alld/dfile.obj
src\dos\dfile.c(340): Error! E1063: Missing operand
src\dos\dfile.c(340): Warning! W111: Meaningless use of an expression
src\dos\dfile.c(340): Error! E1009: Expecting ';' but found 'struct'
src\dos\dfile.c(340): Error! E1011: Symbol 'FF_DATA' has not been declared
src\dos\dfile.c(340): Error! E1011: Symbol 'ff_data' has not been declared
src\dos\dfile.c(340): Error! E1014: Left operand must be an 'lvalue'
src\dos\dfile.c(342): Error! E1033: Expression for '->' must be 'pointer to struct or union'

and when i type make install PROFILEMODE=1 at the cp it also installs properly

can any one tell me what is wrong and what i need to do to fix this problem.

and if any one needs the full output from the commands i will be glad to provied them upon request.

thanks,
alysher

I didn't lose my marbles, I never had any to begin with!!!

Matthew Leverton
Supreme Loser
January 1999
avatar

The Watcom is a rarely used port. Unless you have a compelling reason, I'd stick with DJGPP for DOS.

Alysher
Member #8,406
March 2007
avatar

i can't stand using a non-ide compiler, sorry i'm too inpatient to continusliy type my commands

I didn't lose my marbles, I never had any to begin with!!!

Matthew Leverton
Supreme Loser
January 1999
avatar

RHIDE is a good IDE for DOS. Also, any of the Windows ones (Code Blocks, Dev-C++, etc) would work with DJGPP as well.

Alysher
Member #8,406
March 2007
avatar

but will they do win-16, dos-16,dos-32, win-32,programs as well? i know that dev-C++ won't but i don't know about the others. OPEN Watcom does all these and will allow me,a budding c++ programmer, to be able to look at the help docs and know how to do what i need to do.

I didn't lose my marbles, I never had any to begin with!!!

Matthew Leverton
Supreme Loser
January 1999
avatar

Most free IDEs will work with both MingW and DJGPP. Dev-C++ isn't a compiler. It's an IDE. It produces whatever executables the compiler you are using creates.

Open Watcom with Allegro will only create 32-bit DOS executables. They will run fine under DOS, Windows 95, 98 and ME. They will not work very well under Windows XP. They will not work at all under 64-bit Windows.

Alysher
Member #8,406
March 2007
avatar

OK i will do that , but i still want to know why the watcom version was having problems, and if it can be fixed

I didn't lose my marbles, I never had any to begin with!!!

Matthew Leverton
Supreme Loser
January 1999
avatar

Your first error is this:

Quote:

demo\display.h(7): Error! E1115: Incomplete enum declaration

That means it doesn't like something on line number 7 in that file.

Alysher
Member #8,406
March 2007
avatar

i'm still new to c and c++ programing so i don' quite understand it i know that their is a problem in the code on line 7 but i don't know what an enum declartion is and im not sure how to fix it.

I didn't lose my marbles, I never had any to begin with!!!

Peter Wang
Member #23
April 2000

There's nothing wrong with that line. It's almost as if Watcom is compiling that code as C++, instead of C. There is a problem on line 340 of dfile.c, which has a statement before a variable declaration, which is not allowed in older versions of C.

If you're new to this, try to stick to the well trodden path. That means MinGW or MSVC on Windows and djgpp for DOS.

Alysher
Member #8,406
March 2007
avatar

well i tried to compile for djgpp and ended up with problems on the dfile.c for all make commands(ie make, make install, make install DEBUGMODE=1,...) that are similar to the watcom version, i even changed my djgpp gcc compilier to 2.9.5.3 and my bin utilties to 2.9.5.1 and i still got the same problem. what is wrong and what can be done???

I didn't lose my marbles, I never had any to begin with!!!

BAF
Member #2,981
December 2002
avatar

Are you using DJGPP to compile or still the watcom compiler?

Alysher
Member #8,406
March 2007
avatar

I believe its using gcc, the last 10 lines of output after runing make are:

gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mcpu=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/dfile.o -c src/dos/dfile.c
src/dos/dfile.c: In function `al_ffblk_get_size':
src/dos/dfile.c:340: parse error before `struct'
src/dos/dfile.c:342: `ff_data' undeclared (first use in this function)
src/dos/dfile.c:342: (Each undeclared identifier is reported only once
src/dos/dfile.c:342: for each function it appears in.)
src/dos/dfile.c:343: warning: control reaches end of non-void function
make.exe: *** [obj/djgpp/alleg/dfile.o] Error 1

EDIT:This looks like the same type of problem http://www.allegro.cc/forums/thread/590170

any sugestions????????????

I didn't lose my marbles, I never had any to begin with!!!

Go to: