Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

in linux. how to compile a file?

Status
Not open for further replies.

Robertt

Junior Member level 3
Junior Member level 3
Joined
Jun 20, 2005
Messages
31
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,634
Thanks, I am following an instruction to config some files. It require me to "compile" a file? How?

Thanks a lot
 

Hi

For most packages
First seek for a file like .configure and try ./configure
or
./configure --help

For a single file like mytest.c
gcc -o mytest mytest.c

tnx
 

hey,

I just need to compile a single file, bar in NCSU's CDK

I entered gcc -o bar bar.c

but "commond not found"

what's the reason?

I use SUSE 9.0 Pro Linux
 

When you installed your linux version did you mention you would like to install the gcc compiler too? (Check if your gcc compiler is installed)
 

Robertt said:
hey,

I just need to compile a single file, bar in NCSU's CDK

I entered gcc -o bar bar.c

but "commond not found"

what's the reason?

I use SUSE 9.0 Pro Linux


hi

1. you must have installed gcc to run it.
2. sometimes gcc may be invoked via cc or g++ commands try them too.


tnx
 

I think that any software have a help. to help user using software easy.
 

about the redhat clones (the SUSE, mandrake, and other SVR4.2 linuces around) gcc is not an optional package, it is in the base set, and is installed anyway. maybe it is aliased as "cc" or something like that, or maybe it is not in the path... or maybe they're using egcs...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top