First, you must include conio.c;
Second: Did you upgraded the mingw compiler?, the new changes conio.* by
other version without the function. Or at least it doesn't work for me.
In the new conio.h the enum colors that says what number is each color
has been deleted. See your conio.h file, there you'll know the version.
If you need I can send you the older versions..
Daniel Glenfield escribió:
>
>
> I think the problem is that you've a) not written a body for your
> textcolor function, and also you're passing a variable named BLUE to
> textcolor however there is NO function that accepts one parameter.
>
> So you need
>
> int textcolor()
>
> {
>
> // put something here
>
> };
>
> int textcolor(color)
>
> {
>
> // what happens when a parameter is passed?
>
> };
>
> Also, you have created a parameter out of nowhere - you need to sort
> that.
>
> As for how to GET a colour on the screen, I'm not sure as you're not
> in Windows and I don't remember how to get it in Console.
>
>
> >From: "Kenneth Armstrong"
> >To: dev...@so...
> >Subject: [Dev-C++] what's wrong with this?
> >Date: Fri, 25 Jan 2002 23:35:12 -0500
> >
> >i need help. this program compiles fine, but during the linking
> >process I
> >get this error: 'undefined reference to 'textcolor'. Here's the
> >code. I'm
> >new to this stuff so bear with me.
> >
> >#include
> >#include
> >
> >int textcolor();
> >
> >int Main()
> >{
> >textcolor(BLUE);
> >printf("This is color Blue");
> >return 0;
> >}
> >
> >short and sweet but something's wrong. can you give me a hand?
> >
> >digimars
> >
> >
> >
> >_________________________________________________________________
> >Send and receive Hotmail on your mobile device:
> >http://mobile.msn.com
> >
> >
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
> -----------------------------------------------------------------------
> Send and receive Hotmail on your mobile device: Click Here
> _______________________________________________ Dev-cpp-users mailing
> list Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|