-
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.
-
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
-
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.
-
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
-
By jase_dukerider in forum C++
Replies: 2
Last Post: 04-14-2005, 07:48 PM
-
By K. Soe in forum VB Classic
Replies: 8
Last Post: 03-08-2003, 06:25 PM
-
By Larry Rebich in forum vb.announcements
Replies: 1
Last Post: 04-02-2002, 10:45 PM
-
By Tomer Cagan in forum ASP.NET
Replies: 1
Last Post: 07-24-2001, 09:01 AM
-
By deborah in forum authorevents.kurata
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks