problem with c compiler in linux

Status
Not open for further replies.

ambika

learnhardy
Hi all,
i am new to linux system.
I am very comfortable with TURBO C or C++........now just i m shifted to dev C++(beta version),geany etc .......in my new linux system .....i have been facing problem with these compilers ......can u guys simplly tell me whts the main difference between these two ........how to set these compilers in linux??
__________________
 

QwertyManiac

Commander in Chief
Here's a start: *www.thinkdigit.com/forum/showthread.php?t=105755

Also, since there is no conio.h in Linux, quit using clrscr and getch functions.
 
OP
A

ambika

learnhardy
hey qwerty i m going to leave this forum........

everyone assign me goggling .......if i find it difficult ......and not get .....right one by googling ....then??
 
Last edited:

vamsi360

Always confused
use gcc in terminal.
cc filename.c
./a.out
Why going for IDEs when you are a newbie?
Use terminal and vi editor ......
 

Garbage

God of Mistakes...
Before that, if you are using Ubuntu, then install build-essentials package by doing-
Code:
sudo apt-get install build-essentials

Then you can write your code in vi / gedit / kete as
Code:
vi filename.c
gedit filename.c
kete filename.c

After that, you can compile file using-
Code:
gcc filename.c -o filename

And now run by -
Code:
./filename

Hope, this will help. :)
 

QwertyManiac

Commander in Chief
You do know that DOS's clear and Linux's clear commands are very different? It might lead to issues based on what one's intending to do. If you want a proper window-like console system, go for ncurses.
 

Faun

Wahahaha~!
Staff member
Before that, if you are using Ubuntu, then install build-essentials package by doing-
Then you can write your code in vi / gedit /
kete as
Code:
[COLOR=White]vi filename.c
gedit filename.c[/COLOR]
kete filename.c

:)
What is this Kete...lol:rolleyes:
 

vamsi360

Always confused
You do know that DOS's clear and Linux's clear commands are very different? It might lead to issues based on what one's intending to do. If you want a proper window-like console system, go for ncurses.

that depends on the programmers intension dude
 

QwertyManiac

Commander in Chief
Didn't I use the word if? And to use system("clear") is wrong, you may try it out yourself. It would not work as expected on most terminal emulators of Linux.
 

Liverpool_fan

Sami Hyypiä, LFC legend
I think it sucks pretty much that much of new programmers are trained in anything but Turbo C++. :rolleyes:
And to add to that, they are made to use, clrscr(); gets() and void main().
Duh...
And a new programmer doesn't even understand. :(

@OP:
Look here but some tips:
*home.att.net/~jackklein/ctips01.html
 

vamsi360

Always confused
@qwerty
if it is a problem in other emulators ok ....agreed but i really didn't find any problem with it in my tried distros list.
Have you tried Fedora Eclipse or NetBeans 6.1?
 
Status
Not open for further replies.
Top Bottom