Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: sadiq on December 27, 2010, 10:06:27 am

Title: regarding some ERRORS in code blocks!!! pls help
Post by: sadiq on December 27, 2010, 10:06:27 am
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!!!!
 
             
Title: Re: regarding some ERRORS in code blocks!!! pls help
Post by: ollydbg on December 27, 2010, 10:27:23 am
3.why code block not supportin <dos.h>...       
simple answer:
Mingw does not support building dos applications.
Title: Re: regarding some ERRORS in code blocks!!! pls help
Post by: reckless on December 27, 2010, 02:18:40 pm
better of with open watcom if you need to develop for dos, an alternative is djgpp if you prefer using bash.
Title: Re: regarding some ERRORS in code blocks!!! pls help
Post by: sadiq on January 09, 2011, 08:15:16 pm
thnx a lot........
but wat about d first two ques,,,,,,,,is dis also because of failure in supporting <dos.h>
Title: Re: regarding some ERRORS in code blocks!!! pls help
Post by: frithjofh on January 09, 2011, 09:18:21 pm
investigate. void main() is simply not standard C++, therefore it is not supported. standard C++ is int main().