GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 14-Apr-2004, 18:43
Mjkramer21's Avatar
Mjkramer21 Mjkramer21 is offline
Awaiting Email Confirmation
 
Join Date: Mar 2004
Location: Orem, Ut
Posts: 36
Mjkramer21 is on a distinguished road

compiler all of the sudden acting funny


Hey Guys. I can't compile anything all of the sudden. Im getting this error:

CPP / C++ / C Code:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
C:\test.c:
Fatal F1003 c:\Borland\Bcc55\include\stdcomp.h 5: Error directive: Must use C++ for STDCOMP.H
*** 1 errors in Compile ***

Tool completed with exit code 1

I didn't even do anything to it. Yesterday it was working fine.
  #2  
Old 14-Apr-2004, 18:47
Mjkramer21's Avatar
Mjkramer21 Mjkramer21 is offline
Awaiting Email Confirmation
 
Join Date: Mar 2004
Location: Orem, Ut
Posts: 36
Mjkramer21 is on a distinguished road
apperently you can't create C apps with this Borland C++ compiler. Is that right?
  #3  
Old 14-Apr-2004, 18:48
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Hello Mj.

Two things.

First, it looks like you are from my neck of the woods. Do you go to the Y or UVSC? I graduated from the U, so be careful what you say

Anyway, does the file that you are trying to compile happen to end in .c? I think that Borland is assuming that you are compiling a c file. Try changing the extension to cpp.

HTH
d
  #4  
Old 14-Apr-2004, 18:50
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Quote:
Originally Posted by Mjkramer21
apperently you can't create C apps with this Borland C++ compiler. Is that right?

Sorry - cross post. No, I don't think that is right. But you can't include some files in standard C files. In this case it appears that stdcomp.h is a C++ header file.
  #5  
Old 14-Apr-2004, 18:53
Mjkramer21's Avatar
Mjkramer21 Mjkramer21 is offline
Awaiting Email Confirmation
 
Join Date: Mar 2004
Location: Orem, Ut
Posts: 36
Mjkramer21 is on a distinguished road
Quote:
First, it looks like you are from my neck of the woods. Do you go to the Y or UVSC? I graduated from the U, so be careful what you say

I go to UVSC. Small World

Quote:
Sorry - cross post. No, I don't think that is right. But you can't include some files in standard C files. In this case it appears that stdcomp.h is a C++ header file.

got it. Thanks
  #6  
Old 14-Apr-2004, 19:04
WaltP's Avatar
WaltP WaltP is online now
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,258
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by Mjkramer21
apperently you can't create C apps with this Borland C++ compiler. Is that right?
Wrong. I do it all the time.

You can't make C files with C++ headers. Notice the text "Error directive: Must use C++ for STDCOMP.H"
__________________

Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough.
-- Pearl Williams
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
a noobish compiler question Charunks C++ Forum 5 03-Sep-2003 03:18
i need a free Mac compiler yerdos C++ Forum 1 28-Jul-2003 03:12

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:44.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.