How to define position of linker C Program?

November 8, 2010 at 06:28:11
Specs: Windows XP
I write C program save .c ใน Dev C
#include <stdio.h>
#include <conio.h>
{ textcolor(12)
cprintf("color 12");


when I compile and Run. It 's error "Can not define function textcolor() cprint() . I think that program compiler don't know Directory of linker C Program. I need to know about define directory of linker

See More: How to define position of linker C Program?

Report •

November 9, 2010 at 07:17:52
If Dev-C++ had a problem locating the linker, it'd say it had a problem with the linker.

G:\Cpp\Dev-Cpp\include>findstr /s "textcolor cprintf" *.h
conio.h:_CRTIMP int __cdecl     _cprintf (const char*, ...);

Your problem is pretty clear: GCC (the compiler Dev-C++ uses) doesn't include a textcolor() nor cprintf() function.

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question