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!

Must use C++ for STDCOMP.H ..... Help

Status
Not open for further replies.

emilyjohnson

Programmer
Apr 19, 2001
1
US
Hi,

I have never use Borland, and I am encountering a compilation error while trying run make (I created a Makefile using tmake). Below is a short discription of the error message generate during the compilation. It seems that the borland library, in this case, stdcomp.h has a problem. Has anyone encounter this problem before? Thanks.

Directory of C:\MYSPACE\SHAPE2

[.] [..] dbfopen.c Makefile Shape.cc Shape.h
shape.pro shapefil.h shpopen.c shptree.c
8 File(s) 155,566 bytes
2 Dir(s) 2,798,628,864 bytes free

C:\MYSPACE\SHAPE2>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 -c -w -O2 -oShape.obj Shape.cc
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Shape.cc:
Fatal F1003 c:\Borland\Bcc55\include\stdcomp.h 5: Error directive: Must use C+
for STDCOMP.H
*** 1 errors in Compile ***

** error 1 ** deleting Shape.obj
 
Change the name of Shape.cc to Shape.cpp. The compiler looks at the .cc extenstion and thinks it is a C program instead of a C++ program.
James P. Cottingham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top