DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Text file

  1. #1
    Join Date
    Sep 2004

    Text file

    I 've written a programm on Windows98 notepad and wanted to compile it under MS-DOS C++ compiler. I got fatal error saying that I must use C++ for STDCOMP.H. My compiler wanted to include stdcomp.h and written that error. I've checked there is stdcomp.h file in my library. What do I do wrongly?
    Please help me. Thank you in advance.

  2. #2
    Join Date
    Nov 2003
    Is stdcomp.h in the right location? You probably need to make sure that it exists and that the compiler knows where to find it. The latter is done by specifying the default search paths, depending on your compiler.
    Danny Kalev

  3. #3
    Join Date
    Sep 2004
    The stdcomp.h is in directory "include" like for example iosteam.h which compiler always finds. I have also written #include<stdcomp.h>. Is it possible that different path is needed for the compiler to compile file written in MS-DOS editor than in Windows 98 Notepad in spite of compiling both files ( ms-dos and windows 98 notepad)
    in Borland " bin" directory and all included files are in directory "include". Additionaly compiler does not say that it cannot include stdcomp.h ( which should write 'cos did it before when I had not configured it ). To cap it all, compiler can include <iostream.h>
    and writes a fatal error saying that "Must use C++ for stdcomp.h "when I compile file written in Windows98 Notepad. If anybody can help me please do.

  4. #4
    Join Date
    Nov 2003
    Try to rewrite the file using a different editor. I suspect that notepad inserts binary characters to the file that the compiler treats as letters or separators. Also, make sure that the source file you're compiling has a .cpp or .cxx extension. Otherwise the compiler would assume that it's a C file.
    Danny Kalev

Similar Threads

  1. wav file fade in out help
    By jase_dukerider in forum C++
    Replies: 2
    Last Post: 04-14-2005, 07:48 PM
  2. Replies: 8
    Last Post: 03-08-2003, 06:25 PM
  3. Replies: 1
    Last Post: 04-02-2002, 10:45 PM
  4. File uploading / objFile.Write problem
    By Tomer Cagan in forum ASP.NET
    Replies: 1
    Last Post: 07-24-2001, 09:01 AM
  5. Replies: 0
    Last Post: 04-17-2000, 01:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.