November 17th, 2013, 07:34 AM
Simple c graphics problem
unknown escape sequence '\T'
unknown escape sequence '\D'
i> cannot find -lobjc
2> ID returned exit 1 status
i've already included header file and library file in DEV compiler.
please , tell how to remove this error.
also, ID returned exit 1 status does not affected by return 0 of main().
November 17th, 2013, 09:59 AM
i think you have to recall the basic syntax of c string statements.have you came across the escape sequences.try to google about it.if and only if we type "\\"the compiler will take it as a single backslash. so use "c:\\turbo\\bla bla bla"in the initgraph function.so it will avoid the compiler to confuse with the escape seq
November 17th, 2013, 11:05 PM
error un solved
Originally Posted by s_1_th97
i tried it but of no avail . it give the same error in devcpp :
cannot find -lobjc and id returned exit 1 status.
but in dosbox(turboc) , on compiling no error but whenever i run
it , in message box there is statement saying ....LINKING source..
November 18th, 2013, 08:46 AM
Do you realize that BGI stands for Borland Graphic Interface? And do you understand that to use this interface you need a Borland compiler? Dev-C++ is not a Borland based compiler.
November 18th, 2013, 10:02 AM
Dev-C++ is not even a compiler, but rather an IDE that bundles with it the MinGW gcc port. MinGW gcc does have a BGI library, libbgi.a . I've never used it, but I just now looked and it is there.
Originally Posted by jimblumberg
Perhaps if OP would have Google'd for doing BGI with MinGW gcc.
November 19th, 2013, 10:01 AM
if you want to program it with dev c++ then use open gl.the ide comes with it by default .it does not includes graphics.h file and all lib files for it.if you are satisfied with turbo c,continue with it.and sorry for my irrelevant answer at first because i only saw the code and havn't noticed that you were using dev c++.