![]() |
|
#1
|
|||
|
|||
a noobish compiler questionHi all,
I've got a question. I've got the borland 5.5 compiler. I've tried to compile for the first time using this ccp script (hello.ccp): CPP / C++ / C Code:
when I try to compile using the borland compiler I get this error: Fatal F1003 C:borland\bcc55\Include\stdcomp.h 5: error directive: must use C++ for STDCOMP.H *** 1 errors in compile *** can anyone tell me what I do wrong, or what I should do? thnx |
|
#2
|
|||
|
|||
|
It's amazing what a quick Google can do. Read this:
bdn.borland.com C++ filenames, by convention, end with .cpp. Yours ends with ccp. Change it, and it should compile ok. Garth Farley |
|
#3
|
|||
|
|||
|
And Welcome to the Boards, Charunks!
Apologies, I'm just back at work, Monday morning. Headache already GF |
|
#4
|
|||
|
|||
|
I am also having the same error message and my file extension is .cpp.
I have two files logbook.cpp and logbook.h that I am trying to compile but I get the Need to use C++ for stdcomp.h error message. Any thoughts? |
|
#5
|
|||
|
|||
Borland ...hmm not sure if the borland compiler requires it or not, but for my visual C++ compiler, I need to put
using namespace std; after #include <iostream> so your program would look like CPP / C++ / C Code:
__________________
Dariklar, 63 human monk Migboaf, 64 dwarvish cleric Xegony, EverQuest. http://dariklar.googlepages.com |
|
#6
|
|||
|
|||
|
Using namespace usually depends on the compiler. Some are smart enough to guess what you're thinking, others are not.
It's good to use it, especially when you understand why. GF |
Recent GIDBlog
Flickr uploads of IA pictures by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| -- Dumb Com Port Question -- | jetpilot8 | Computer Hardware Forum | 0 | 02-Dec-2003 17:08 |
| a C input question.. | tmike | C Programming Language | 2 | 19-Sep-2003 02:39 |
| a C input question | tmike | C Programming Language | 1 | 16-Sep-2003 02:31 |
| i need a free Mac compiler | yerdos | C++ Forum | 1 | 28-Jul-2003 02:12 |
| CSS Layout question | oihjk | Web Design Forum | 3 | 28-May-2003 11:36 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The