C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-30-2002, 01:30 PM   #1
Registered User
 
Join Date: Oct 2002
Posts: 4
compiler issue

hello

i am new to c/c++

i am trying to compile some basic c code in dev-C++ but keep getting the following error

C:\DEV-C_~1\INCLUDE\stdio.h:1: unterminated comment

i know the code is correct so could someone please advise me what correction i need to make to the compiler.

thanks
deebs1000 is offline   Reply With Quote
Old 10-30-2002, 02:09 PM   #2
Registered User
 
Join Date: Oct 2002
Posts: 4
the code is definatley correct.

the compiler is dev c++ 4
deebs1000 is offline   Reply With Quote
Old 10-30-2002, 03:06 PM   #3
Registered User
 
Join Date: Oct 2002
Posts: 4
i have quickly become aware how frustrating programming can be.

i have rectified the problem... the code IS compiling now.

thanks for taking the time to try and help. no doubt i will be back on the forums many times in the future.
deebs1000 is offline   Reply With Quote
Old 10-30-2002, 07:36 PM   #4
End Of Line
 
Hammer's Avatar
 
Join Date: Apr 2002
Posts: 6,240
>>i have rectified the problem... the code IS compiling now
So what was the problem.... let others learn from your experiences too.
__________________
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Hammer is offline   Reply With Quote
Old 10-30-2002, 07:55 PM   #5
Unleashed
 
Join Date: Sep 2001
Posts: 1,755
> i have quickly become aware how frustrating programming can be.
Asking somebody to help you without showing them your errors produces similar results.
__________________
The world is waiting. I must leave you now.
Shadow is offline   Reply With Quote
Old 10-30-2002, 08:07 PM   #6
Registered User
 
Join Date: Oct 2002
Posts: 4
i manually deleted the dev- c++ compiler and reinstalled it (i did this twice) and it worked on the third installation... as simply as that... i dont know why it decided to work this time
deebs1000 is offline   Reply With Quote
Old 10-30-2002, 08:12 PM   #7
End Of Line
 
Hammer's Avatar
 
Join Date: Apr 2002
Posts: 6,240
That seems a bit strange.... oh well, at least you got it going.

I was going to suggest this, which I found in google's NG archive:
Quote:
Using " and ' in a comment started with // results in an
"Unterminated string or character constant"
if you hand it in a .c file to gcc without telling anything about
C++.
It's a bit old, and probably nothing like what you're running.... but it would have been my only shot...
__________________
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Hammer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dev C++ Compiler, Indentation? Zeusbwr C++ Programming 3 10-21-2004 06:13 AM
lcc win32 compiler download problems GanglyLamb A Brief History of Cprogramming.com 5 08-01-2004 07:39 PM
MSVC++ vs GCC compiler issue WDT C++ Programming 9 01-04-2004 01:07 PM
Special Compiler for win app's Unregistered Windows Programming 19 04-26-2002 03:52 PM
Compiler Issue spd_dmn C++ Programming 5 01-16-2002 01:29 PM


All times are GMT -6. The time now is 06:10 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22