Re: [Dev-C++] clrscr() and c99 compatibility
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: metalseb <met...@fr...> - 2002-09-23 10:28:49
|
Hi Matthews >I recently downloaded the new dev-c++ beta version, and am a bit stuck. >Looking through the included header files, I found a prototype for the >clrscr() function in conio.h, but trying to use clrscr() resulted in a >linker error. What header do I need to include to use clrscr()? You don't need more headers. You just have to link with libconio.a Linker errors are not related with missing ".h" headers. In this case, you get *compiler* errors, not *linker* ones. Project options/Linker options : -lconio >Also, I believe dev-c++ to be C99 compatible, but how come when I tried to >declare "char choice" halfway down a function, it gave me a parsing error? >C99 was supposed to allow variable declarations anywhere in the code. No problem here. Can you make a cut&paste of the snippet that causes you the problem ? Kind regards -- Seb |