Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Borland C++ compiler problem

Status
Not open for further replies.

tommeekers

Programmer
Sep 10, 2003
77
BE
Hi,

I have an example source code (I have no idea what it is supposed to do), with a 'makefile included'. Surfing the web I found the free Borland C++ compiler. I'm trying to run this 'makefile' (it should make me a .dll)

This is the makefile:

# $Id: $
CC = cl
LINK = link
DEFINES = -DWIN32
OUTNAME = opengl32
CFLAGS = /nologo /MT /W3 /GX
LFLAGS = -nologo -warn -dll -incremental:no -opt:ref -release

OFILES = opengl32.obj

all: whole

whole: $(OFILES) $(OUTNAME).exp
link $(OFILES) $(OUTNAME).exp $(LFLAGS) $(LIBS) -out:$(OUTNAME).dll

$(OUTNAME).exp: $(OUTNAME).def
lib -nologo -def:$(OUTNAME).def -out:$(OUTNAME).lib $(OFILES)

clean:
@del *.obj
@del *.dll
@del *.exp
@del *.lib
@del *.map
@del *.pdb

.cpp.obj:
$(CC) -c $(CFLAGS) /Fo$(<R).obj $<

.c.obj:
$(CC) -c $(CFLAGS) /Fo$(<R).obj $<



when I use make.exe to make my .dll it keeps giving an error about the 'cl'. It doesn't understand it or something. What is wrong here ? Why can't I compile this ?
 
I'm guessing that the line
Code:
CC = cl
ought to read
Code:
CC = BCC32
. It doesn't look like this makefile is written for a Borland compiler but another compiler. If this is true, some of the other options may or may not work as expected.

James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
You're probably right. Now I get an error 'E2075: Incorrect command line option: /MT'.
You got any idea what compiler this is written for ?
 
I'm guessing Microsoft's Command Line compiler. If so then the -MT mean create a multithread app using LIBCMTD.


James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
I used Microsoft's Command Line compiler, and it also returns an error. Again the 'cl' is not recognized. :/
Any other suggestions ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top