Re: [Dev-C++] what's wrong with this?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2002-01-26 09:22:17
|
<html><div style='background-color:'><DIV>
<P>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.</P>
<P>So you need </P>
<P>int textcolor()</P>
<P>{</P>
<P> // put something here</P>
<P>};</P>
<P>int textcolor(color)</P>
<P>{</P>
<P> // what happens when a parameter is passed?</P>
<P>};<BR></P>
<P>Also, you have created a parameter out of nowhere - you need to sort that.</P>
<P>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.</P>
<P><BR> </P></DIV>
<DIV></DIV>
<DIV></DIV>>From: "Kenneth Armstrong" <DIG...@HO...>
<DIV></DIV>>To: dev...@so...
<DIV></DIV>>Subject: [Dev-C++] what's wrong with this?
<DIV></DIV>>Date: Fri, 25 Jan 2002 23:35:12 -0500
<DIV></DIV>>
<DIV></DIV>>i need help. this program compiles fine, but during the linking
<DIV></DIV>>process I
<DIV></DIV>>get this error: 'undefined reference to 'textcolor'. Here's the
<DIV></DIV>>code. I'm
<DIV></DIV>>new to this stuff so bear with me.
<DIV></DIV>>
<DIV></DIV>>#include <STDIO.H>
<DIV></DIV>>#include <CONIO.H>
<DIV></DIV>>
<DIV></DIV>>int textcolor();
<DIV></DIV>>
<DIV></DIV>>int Main()
<DIV></DIV>>{
<DIV></DIV>>textcolor(BLUE);
<DIV></DIV>>printf("This is color Blue");
<DIV></DIV>>return 0;
<DIV></DIV>>}
<DIV></DIV>>
<DIV></DIV>>short and sweet but something's wrong. can you give me a hand?
<DIV></DIV>>
<DIV></DIV>>digimars
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>_________________________________________________________________
<DIV></DIV>>Send and receive Hotmail on your mobile device:
<DIV></DIV>>http://mobile.msn.com
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>_______________________________________________
<DIV></DIV>>Dev-cpp-users mailing list
<DIV></DIV>>Dev...@li...
<DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
<DIV></DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a href='http://go.msn.com/bql/hmtag2_etl_EN.asp'>Click Here</a><br></html>
|