15 replies
by munawar
'.c' Programs do not necessarily run under dos or 16-bit file systems. A '.c' program denotes that the program is a C program and not a C++ Program. It has nothing to do with the file-system or OS.
You don't have to format your FAT32. '.c' programs will run under any filesystem as long as your compiler can handle it.
Your compiler errors are probably related to your compiler trying to compile your code as a visual C++ program. You can try a) Renaming all your '.c' files to '.cpp' files and try compiling. Even though this isn't very elegant or nice, it works sometimes. Secondly, try checking what type of project you created. I have a feeling you picked 32-bit Windows Application. Try creating a 32-bit console project or one of the other BLAND projects were MSV C++6.0 doesn't create any extra code and modules for you. Hope this helps. (PS - I create '.c' projects on my Win98 using MSVC++ 6.0 all the time.)
by jeng
Generally, you do not need to reformat your drive to compile/link/debug/run your program. To debug your program, you should "step" through your program, or set breakpoints in the program through the IDE (integrated development environment) and run your program from within the IDE. Also, make sure you're compiling with debug options enabled.
It's kind of odd that you are using an extension "--.c". You may want to change it to the traditional ".c"; if it's a C source program. If that doesn't solve your compiler errors, you should re-examine your code.
by huda
by jkorte
I don't think any Microsoft VC++ product has allowed compilation of DOS apps for some time. I use version 1.52 when doing DOS apps. I think version 2.0 will work as well. I think version 4.0 would not allow DOS apps, but would allow 16 bit windows apps.
Don't bother changing the FAT - it is not the problem. Your development environment is the problem.
Good Luck.
by ram_cv
by x-cyber
by mightyduk
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending