On Thu, 21 Jan 1999 [EMAIL PROTECTED] wrote:

>   i am not able run c programs. it gives no such file or directory. i have libraries 
>for both a.out and ELF format executables installed. the file type of a.out shows 
>32-bit ELF executable, dynamically linked, not stripped. 
> 
>  please guide me as to what the problem can be. Thanks in advance. 
> 

assume : 
------------------8<-----------------------8<---------------------8<----------
% ls 
Makefile        Program.c       Program.h       
%
% Makefile && echo "<<<No error during make>>>"
....
<<<No error during make>>>
%
% ls
Makefile        Program.c       Program.h       Program.o
Program
%
% chmod 755 Program    ;# Thid is only to make sure
%
% ./Program
------------------8<-----------------------8<---------------------8<----------

If it fails anyway : 

Do the "Program" try to exec an other one, which is not where expected?

in this case : 
   strings Program | sed -ne 's/^\(.*\/.*$\)/\1/p'
or (a little bit  easyer to read): 
   strings Program | sed -ne 's#^\(.*/.*$\)#\1#p

should give You every path hard coded in Program, and may be even more.


If there is no problem with the hardcoded path, so go on and check
if You are realy building the Program for the processor you are compiling
on. Don't laught, I had that mess mor than once.

Check Your output of make, check every single parameter given to the
C-compiler. Have a closer look at the Macrodefinitions as well 
( __linux__ , __FreeBSD__ , __386__ , _sparc__... I'm not sure with the
__386__/__i386__ /__sparc__). 

Have Fun !


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 Hochachtungsvoll und mit freundlichen Gruessen aus dem Dungeon :   
                                                       MATHIAS 
                  ____/  ___/   /   /      ___/   __  
   xxxxx         /      /      /   /      /      /  \       _\||/_
  X __ \        /      /      /   /      /      /      }     o  o 
 X C  O-O      __/    __/    /   /      __/    _   ___/      (_)  
 X     _\     /      /      /   /      /      / \            === 
  X  _@      /      /      /   /      /      /   \  
  |  |    __/    _____/ __/ _____/ _____/ __/     \__ 

 Mathias Feiler Am Ried 6 88637 Illmensee 0049 (0)7558/94388  (Privat)
 [EMAIL PROTECTED]     RZ (620)   0049 (0)711/459-3949   (Uni)
 PGP public key &  Homepage   :  http://www.uni-hohenheim.de/~feiler
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Reply via email to