Menu

Compile error in streambuf.h header

2003-02-09
2012-09-26
  • Nobody/Anonymous

    Hi!
    I get an error message when trying to compile a small plain C program. The message is:
    "unterminated string or character constant" for line 160. The code on the line 160 and around it looks OK to me. Anybody knows why is that?
    I use Win 98SE.

     
    • Nobody/Anonymous

      Line 160 of what?  Your code or that header?  You want to try to define what you are asking a little better?

      Post your code.
      Post your compile log.

      Wayne

       
    • Nobody/Anonymous

      I included streambuf.h in some test code here iwth no problems:

      dev version 4.9.7.5
      gcc - 3.2

      Note, you also want to tell folks what version of Dev, what compiler you are running...do that with all problem reports...

      Wayne

       
    • Curtis Sutter

      Curtis Sutter - 2003-02-09

      If we are to 'see' your problem, then open your mind and let us see.  And for the non-ESP types, please post your source code.  Also try to keep in mind a few other things:
      1) Need *FULL* source
      2) Need compile log (select and right-click to copy)
      3) For full effect of 1 & 2 please tell us which Dev/Gcc versions you are using, including Winblows ver (which you did)

      Curtis
      P.S.  After calling Professor Xavier and borrowing the use of Cerebro, I have determined that the best solution to your error message is for you to look for any unmatched " (quotes) single, or double, if they are there as part of your string use a \ infront of them.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.