News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

regarding some ERRORS in code blocks!!! pls help

Started by sadiq, December 27, 2010, 10:06:27 AM

Previous topic - Next topic

sadiq

my questions are:
1.Why code blocks is showing error when i use clrscr();
2.Why code blocks is showing error when i use void main()
3.why code block not supportin <dos.h>...

                                 wat settings should i change inorder to solve above three problems.............i have installed currently codeblocks-10.05mingw-setup
     
                THANX IN ADVANCE!!!!

             

ollydbg

Quote from: sadiq on December 27, 2010, 10:06:27 AM
3.why code block not supportin <dos.h>...       
simple answer:
Mingw does not support building dos applications.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

reckless

better of with open watcom if you need to develop for dos, an alternative is djgpp if you prefer using bash.

sadiq

thnx a lot........
but wat about d first two ques,,,,,,,,is dis also because of failure in supporting <dos.h>

frithjofh

investigate. void main() is simply not standard C++, therefore it is not supported. standard C++ is int main().
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100