I'm not sure how this applies to C++, but in C you include conio.h, then
you go to your project options and add -lconio to your linker options.
At 05:28 PM 16/12/2002 -0000, Aimee Smith wrote:
> nope; that didn't work (and I was using conio.c, just copied the wrong
>code) and now I am getting the message:
> Access violation at address 004DB932 in modlue 'DevCpp.exe' Read of
>address 00E18D79.
>
>I should mention that I am TRYING to run this on a restricted college=
system
>and am trying to find all the errors I possibly can...
>a
>
>-----Original Message-----
>From: "J=F6rgen"
>To: Aimee Smith; Dev...@li...
>Sent: 16/12/2002 17:19
>Subject: Re: [Dev-C++] odd errors
>
>On 2002-12-16 at 16:59 Aimee Smith wrote:
>
>>Occasionally I get the following errors when I bring up a previously
>>written
>>program in Dev C++. Can someone tell me why?
>>
>>
>>C:\DOCUME~1\aimees\LOCALS~1\Temp\cco1aaaa.o(.text+0x438):image.cpp:
>>undefined reference to `cout'
>>C:\DOCUME~1\aimees\LOCALS~1\Temp\cco1aaaa.o(.text+0x43d):image.cpp:
>>undefined reference to `ostream::operator<<(char const *)'
>>
>>the source code is
>>
>>#include <iostream.h>
>>#include <stdlib.h>
>>#include <conio.c>
>
>#include <iostream>
>#include <cstdlib>
>#include <conio.h> // I've never used conio so I'm unsure. Should it
>really be conio.c ?
>
>using namespace std;
>
>>
>>int main()
>>{
>> clrscr();
>> cout<<"\n
>>\t_________________________________________________________________
>\n";
>> cout<<"
>>_________________________________________________________________ ";
>> cout<<"\t=DD\t\t=DD =DD\t\t=DD =DD\t\t=DD =DD\t\t=DD\n";
>> cout<<"\t=DD\t\t=DD =DD\t\t=DD =DD\t\t=DD =DD\t\t=DD\n";
>> cout<<"\t=DD\t\t----\t\t----\t\t----\t\t=DD\n";
>>
>>
>>
>> getch();
>> return 0;
>> }
>>
>>
>>Right -- so it's a simple thing to teach students how to draw on the
>screen
>>using just symbols.... ignoring the whole stupid program thing.... why
>do I
>>get the above mentioned errors??
>>aimee
>>
>>
>>-------------------------------------------------------
>>This sf.net email is sponsored by:
>>With Great Power, Comes Great Responsibility=20
>>Learn to use your power at OSDN's High Performance Computing Channel
>>http://hpc.devchannel.org/
>>_______________________________________________
>>Dev-cpp-users mailing list
>>Dev...@li...
>>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:
>With Great Power, Comes Great Responsibility=20
>Learn to use your power at OSDN's High Performance Computing Channel
>http://hpc.devchannel.org/
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|