[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with g++ compiled program





%Hello
all % %After compiling some simple c program linking it and getting the
%executable file, I tried to execute the program. It was not possible to
%run it , no matter which combinations or names did I tried.
%(The same files exactliy ran perfectly on the technions t2 Unix.)  Any
%Ideas?
%
%Thanks
%Dedy
%
%
%


maybe on your system the path is not correct, unix systems, dont look in
the current directory first and if the file is not found they look in the
path variable later. but rather they look at the path, and if the path
doesnt include the current directory they ignore it, EVEN if it is under
their noses. on the technion's T2 the current directory is part of the
path and maybe that is why it worked perfectly there.

to solve this their are 2 ways:
1) update the path to include the current directory
2) whenever you want a file in your own directory use ./filename to run
it.



===============================================================================

NAFTALI SELZ

HAIFA ADDRESS: DORM. MESHUPAZIM 5/6/1
	       PHONE 050-667528

HOME ADDRESS : MILROD 579/5 ASHQELON
	       PHONE 07-6735572

you can view my homepage at : http://surf.to/BookVision


MY BELIEFE:
If you don't have time to do it right, where are you going to find the
time to do it over?

===============================================================================