writing graphics program
-
- CodeLite Curious
- Posts: 6
- Joined: Tue Feb 04, 2014 9:27 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
writing graphics program
How and where to write a graphics program in codelite??
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: writing graphics program
This a very generic question.
Do you mean GUI application?
There are several ways to do it, but you need to provide more information on what you want to achieve
On your OS, codelite version etc
Eran
Do you mean GUI application?
There are several ways to do it, but you need to provide more information on what you want to achieve
On your OS, codelite version etc
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 6
- Joined: Tue Feb 04, 2014 9:27 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: writing graphics program
i want to write a basic graphics program in codelite lyk this :
M using Ubuntu 12.04 and codelite version v2.8.0.4537
Code: Select all
#include <stdio . h>
#include <graphics . h>
int main ()
{
int gd ,gm; gd=DETECT;
initgraph(&gd,&gm,NULL) ;
line (50 ,50 ,80 ,80) ;
delay (5000) ;
return 0;
}
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: writing graphics program
I dont see the problem herezinat2688 wrote:i want to write a basic graphics program in codelite lyk this :
Please explain in simple words what is the problem.
Also, make sure you read this post HOW TO POST
This is an ancient version of codelite which is no longer supported by us (and it was not packaged by the codelite team)zinat2688 wrote:M using Ubuntu 12.04 and codelite version v2.8.0.4537
You should update to a recent version (current release is 5.4) from our website http://codelite.org
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 6
- Joined: Tue Feb 04, 2014 9:27 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: writing graphics program
it gives the following error:
error: undefined reference to 'initgraph'
error: undefined reference to 'line'
error: undefined reference to 'delay'
error: undefined reference to 'initgraph'
error: undefined reference to 'line'
error: undefined reference to 'delay'
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: writing graphics program
You need to add the graphics library to the linker:
project settings->common settings->linker->libraries
Eran
project settings->common settings->linker->libraries
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 6
- Joined: Tue Feb 04, 2014 9:27 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: writing graphics program
can u specify what exactly i need to do
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: writing graphics program
This is not related to codelite. I suggest that you google thatzinat2688 wrote:can u specify what exactly i need to do
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 6
- Joined: Tue Feb 04, 2014 9:27 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: writing graphics program
Running program: /usr/lib/codelite/codelite_xterm './test ' '/bin/sh -f /usr/lib/codelite/codelite_exec ./test '
after doing the setting and running the program it gives the above thing and no output
after doing the setting and running the program it gives the above thing and no output
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: writing graphics program
which codelite version are you using?
Eran
Eran
Make sure you have read the HOW TO POST thread