Newbie question: Where is python23_bcpp.lib?

Joined
Apr 26, 2004
Messages
1
Reaction score
0
Under Windows, I'm trying to make a program (Gambit Python APIs) using Borland (i.e., "make -f borland").

The Borland make file, shown below, wants python23_bcpp.lib in $(PYTHONDIR)\libs\.

Unfortunately, there is no such file (error shown below). There is a python23.lib file but simply substituting python23_bcpp.lib with python23.lib does not work.

Can anyone help? Is this a problem with the borland.mak file or is it a problem with my install of Python? (I can run a "Hello World" program in Python so Python is not completely broken).

Thanks,
Michael de la Maza

===Make file===

#
# $Source: /cvsroot/gambit/gambit/sources/python/borland.mak,v $ # $Date: 2004/04/09 18:25:47 $ # $Revision: 1.2 $ # # DESCRIPTION:
# Makefile for Borland C++ 5.5 for Python interface
#

..AUTODEPEND

!include ..\makedef.bcc

PYTHONDIR = c:\python23

EXTRACPPFLAGS = -v -I$(PYTHONDIR)\include -I$(BCCDIR)\include -I..
-D__BCC55__
EXTRALINKFLAGS =

CFG = ..\gambit32.cfg

OPT = -Od

..cxx.obj:
bcc32 $(CPPFLAGS) -P -c {$< }

LIBS=gambit $(PYTHONDIR)\libs\python23_bcpp.lib import32 cw32mt

LINKFLAGS= /Tpd /Gn /q /x /L$(BCCDIR)\lib;.. $(EXTRALINKFLAGS) OPT = -Od DEBUG_FLAGS=

CPPFLAGS= $(WXINC) $(EXTRACPPFLAGS) $(OPT) @$(CFG)

all: gbt

gbt: gbt_wrap.obj
ilink32 $(LINKFLAGS) @&&!
c0d32.obj gbt_wrap.obj
_gbt.pyd
nul
$(LIBS)
gbt.def

!

SWIGFILES = \
behav.i \
game.i \
gbt.i \
infoset.i \
mixed.i \
nash.i \
node.i \
outcome.i \
player.i \
rational.i

gbt_wrap.cxx: $(SWIGFILES)
swig -c++ -python gbt.i

clean:
-erase *.obj
-erase *.exe
-erase *.res
-erase *.map
-erase *.rws

==Error=====

C:\Temp\Gambit 09712\gambit-0.97.1.2\sources\python>make -f borland MAKE Version 5.2 Copyright (c) 1987, 2000 Borland ilink32 /Tpd /Gn /q /x /LC:\BORLAND\BCC55\lib;.. @MAKE0000.@@@
Fatal: Unable to open file 'PYTHON23_BCPP.LIB'
 

Tonio

Usenet Archive
Joined
Jul 3, 2002
Messages
8
Reaction score
0
"De La Maza Michael A GS-11 AFSPC/XPYS" ha scritto nel messaggio Under Windows, I'm trying to make a program (Gambit Python APIs) using Borland (i.e., "make -f borland").

The Borland make file, shown below, wants python23_bcpp.lib in $(PYTHONDIR)\libs\.

Unfortunately, there is no such file (error shown below). There is a python23.lib file but simply substituting python23_bcpp.lib with python23.lib does not work.

Can anyone help? Is this a problem with the borland.mak file or is it a problem with my install of Python? (I can run a "Hello World" program in Python so Python is not completely broken).

Thanks,

Michael de la Maza

===Make file===

#

# $Source: /cvsroot/gambit/gambit/sources/python/borland.mak,v $

# $Date: 2004/04/09 18:25:47 $

# $Revision: 1.2 $

#

# DESCRIPTION:

# Makefile for Borland C++ 5.5 for Python interface

#

.AUTODEPEND

!include ..\makedef.bcc

PYTHONDIR = c:\python23

EXTRACPPFLAGS = -v -I$(PYTHONDIR)\include -I$(BCCDIR)\include -I.. -D__BCC55__

EXTRALINKFLAGS =

CFG = ..\gambit32.cfg

OPT = -Od

.cxx.obj:

bcc32 $(CPPFLAGS) -P -c {$< }

LIBS=gambit $(PYTHONDIR)\libs\python23_bcpp.lib import32 cw32mt

LINKFLAGS= /Tpd /Gn /q /x /L$(BCCDIR)\lib;.. $(EXTRALINKFLAGS)

OPT = -Od

DEBUG_FLAGS=

CPPFLAGS= $(WXINC) $(EXTRACPPFLAGS) $(OPT) @$(CFG)

all: gbt

gbt: gbt_wrap.obj

ilink32 $(LINKFLAGS) @&&!

c0d32.obj gbt_wrap.obj

_gbt.pyd

nul

$(LIBS)

gbt.def

!

SWIGFILES = \

behav.i \

game.i \

gbt.i \

infoset.i \

mixed.i \

nash.i \

node.i \

outcome.i \

player.i \

rational.i

gbt_wrap.cxx: $(SWIGFILES)

swig -c++ -python gbt.i

clean:

-erase *.obj

-erase *.exe

-erase *.res

-erase *.map

-erase *.rws

==Error=====

C:\Temp\Gambit 09712\gambit-0.97.1.2\sources\python>make -f borland

MAKE Version 5.2 Copyright (c) 1987, 2000 Borland

ilink32 /Tpd /Gn /q /x /LC:\BORLAND\BCC55\lib;.. @MAKE0000.@@@

Fatal: Unable to open file 'PYTHON23_BCPP.LIB'

see here or in the site:

http://www.tismer.com/research/stackless/binaries-pc/python23_d.dll.zip
 

David Rushby

Usenet Archive
Joined
Jul 18, 2003
Messages
24
Reaction score
0
De La Maza Michael A GS-11 AFSPC/XPYS said:
Under Windows, I'm trying to make a program (Gambit Python APIs) using Borland (i.e., "make -f borland").

The Borland make file, shown below, wants python23_bcpp.lib in $(PYTHONDIR)\libs\.

Unfortunately, there is no such file (error shown below). There is a python23.lib file but simply substituting python23 bcpp.lib with python23.lib does not work.

Because the official distributions of Python 2.3.x are compiled with MSVC 6, python23.lib is in the Microsoft lib format (coff). BCPP requires the Borland format (omf). BCPP includes a conversion utility called coff2omf.exe.

The commands
cd $(PYTHONDIR)\libs
coff2omf.exe python23.lib python23_bcpp.lib
should create the required file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,051
Messages
3,104,251
Members
248,135
Latest member
tobystanx

Latest Threads

Top