TONPPAMF

The Official NPPAngband And NPPMoria Forum

You are not logged in.

Announcement

November 28, 2016 - NPPAngband forum has been migrated to a new host. SSL has been enabled so please use https:// if possible.

#1 2005-02-03 15:15:56

MegaKurt
TONPPAMF Maintainer
From: Town Level
Registered: 2004-07-01
Posts: 213
Website

Open Watcom 1.3 C/C++ Compiler

Has anyone used the Open Watcom C/C++ compiler to compile a DOS version? I am trying to compile NPP 0.4.0c without much success. I've installed Open Watcom to compile DOS 32-bit programs. I had to comment out

_WCRTLINK extern void    sound( unsigned __frequency );

in the i86.h file. Using the default Makefile.wat I get the following error when linking...

%create  angband.lnk
    wlink system pmodew @angband.lnk
Open Watcom Linker Version 1.3
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
loading object files
searching libraries
Error! E2028: use_object_ is an undefined reference
creating a PMODE/W executable
file cmd6.obj(C:\KURT\DOWNLOAD\NPP\SRC\cmd6.c): undefined symbol use_object_

Can someone with more C experience give me some advice? Thanks.


~ MegaKurt

Offline

#2 2005-02-03 18:16:53

CJN
Member
Registered: 2004-11-16
Posts: 19

Re: Open Watcom 1.3 C/C++ Compiler

It seems to me that use_object was moved to the file use-obj.c, but the makefile Makefile.wat was not changed to include this new file.
Try adding use-obj.obj to the OBJS= part of Makefile.wat.

Offline

#3 2005-02-04 13:30:45

MegaKurt
TONPPAMF Maintainer
From: Town Level
Registered: 2004-07-01
Posts: 213
Website

Re: Open Watcom 1.3 C/C++ Compiler

Good call on the missing file reference but it didn't solve the problem. sad Any other ideas?


~ MegaKurt

Offline

#4 2005-02-04 15:19:29

CJN
Member
Registered: 2004-11-16
Posts: 19

Re: Open Watcom 1.3 C/C++ Compiler

Have you tried to remove the old .obj files before you recompile?
I'm out of ideas after that.

Offline

#5 2005-02-04 17:42:55

NPPAngband
NPPAngband Maintainer
Registered: 2004-07-01
Posts: 1,647
Website

Re: Open Watcom 1.3 C/C++ Compiler

file cmd6.obj(C:\KURT\DOWNLOAD\NPP\SRC\cmd6.c): undefined symbol use_object_

This has nothing to do with the use_object file.  It does not like the function calls to use_object (which is in the use-obj file  in the file cmd6.c.  You proibably have to delete the reference use-obj.obj as well as add the new filemane. 

My best advice is to use DJGPP to compile a Dos version.  I use this and it works fine without comments.

Offline

#6 2005-02-07 08:59:38

MegaKurt
TONPPAMF Maintainer
From: Town Level
Registered: 2004-07-01
Posts: 213
Website

Re: Open Watcom 1.3 C/C++ Compiler

DJGPP works but the compiled executable seems to have a problem with the text colors when windowed in Windows. Full screen works fine, but I can't play the game full screen at... er... *cough*... work. wink I wanted to see if the problem is with the main.ibm code or with the compiler libraries.

NPPAngband wrote:

You proibably have to delete the reference use-obj.obj as well as add the new filemane.

I'm not entirely sure I understand what you mean.


~ MegaKurt

Offline

Board footer

Powered by FluxBB