This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Executable file is there but it said could not find


Thanks Dave.
I used bash shell and my report is exactly what I got from screen when
type './abc' and 'where abc'.
Attached is cygcheck.out file and below is what on the screen when I
follow your guide. Hope that it helps.


Administrator@pc ~
$ cd e:/graphite/abc

Administrator@pc /cygdrive/e/graphite/abc
$ make
g++ -c   -I/usr/lib/glib-2.0/include/  -I/usr/include/qt3    -I/usr/include/glib
-2.0/  -Ic:/cplatform/libqglviewer-2.3.0/ -Ic:/cplatform/gmp-4.1/include readFil
e.cpp
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/vec
tor.h:59,
                 from surfSeg.h:22,
                 from readFile.h:23,
                 from readFile.cpp:19:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated heade
r. Please consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h> header
for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. T
o disable this warning use -Wno-deprecated.
gcc -c   -I/usr/lib/glib-2.0/include/  -I/usr/include/qt3    -I/usr/include/glib
-2.0/  -Ic:/cplatform/libqglviewer-2.3.0/ -Ic:/cplatform/gmp-4.1/include def.c
g++ -c   -I/usr/lib/glib-2.0/include/  -I/usr/include/qt3    -I/usr/include/glib
-2.0/  -Ic:/cplatform/libqglviewer-2.3.0/ -Ic:/cplatform/gmp-4.1/include surfSeg
.cpp
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/vec
tor.h:59,
                 from surfSeg.h:22,
                 from surfSeg.cpp:25:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated heade
r. Please consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h> header
for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. T
o disable this warning use -Wno-deprecated.
g++ -c   -I/usr/lib/glib-2.0/include/  -I/usr/include/qt3    -I/usr/include/glib
-2.0/  -Ic:/cplatform/libqglviewer-2.3.0/ -Ic:/cplatform/gmp-4.1/include display
Solution.c
g++ -c   -I/usr/lib/glib-2.0/include/  -I/usr/include/qt3    -I/usr/include/glib
-2.0/  -Ic:/cplatform/libqglviewer-2.3.0/ -Ic:/cplatform/gmp-4.1/include  main.c
pp
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/ios
tream.h:31,
                 from main.cpp:22:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated heade
r. Please consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h> header
for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. T
o disable this warning use -Wno-deprecated.
g++ -c   -I/usr/lib/glib-2.0/include/  -I/usr/include/qt3    -I/usr/include/glib
-2.0/  -Ic:/cplatform/libqglviewer-2.3.0/ -Ic:/cplatform/gmp-4.1/include cleanPr
eimage.c
g++ -c   -I/usr/lib/glib-2.0/include/  -I/usr/include/qt3    -I/usr/include/glib
-2.0/  -Ic:/cplatform/libqglviewer-2.3.0/ -Ic:/cplatform/gmp-4.1/include recoPla
ne.c
g++ -c   -I/usr/lib/glib-2.0/include/  -I/usr/include/qt3    -I/usr/include/glib
-2.0/  -Ic:/cplatform/libqglviewer-2.3.0/ -Ic:/cplatform/gmp-4.1/include  viewer
.cpp
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/vec
tor.h:59,
                 from surfSeg.h:22,
                 from viewer.h:6,
                 from viewer.cpp:1:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated heade
r. Please consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h> header
for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. T
o disable this warning use -Wno-deprecated.
viewer.cpp: In member function `virtual void Viewer::drawWithNames()':
viewer.cpp:160: warning: passing `double' for converting 4 of `int Scene::IsBoun
daryVoxel(int, int, int, int)'
viewer.cpp:163: warning: passing `double' for converting 5 of `int Scene::IsBoun
daryFace(int, int, int, int, int)'
viewer.cpp: In member function `virtual void Viewer::draw()':
viewer.cpp:188: warning: passing `double' for converting 4 of `int Scene::IsBoun
daryVoxel(int, int, int, int)'
viewer.cpp:191: warning: passing `double' for converting 5 of `int Scene::IsBoun
daryFace(int, int, int, int, int)'
g++ -c   -I/usr/lib/glib-2.0/include/  -I/usr/include/qt3    -I/usr/include/glib
-2.0/  -Ic:/cplatform/libqglviewer-2.3.0/ -Ic:/cplatform/gmp-4.1/include geodes.
cpp
g++ -c   -I/usr/lib/glib-2.0/include/  -I/usr/include/qt3    -I/usr/include/glib
-2.0/  -Ic:/cplatform/libqglviewer-2.3.0/ -Ic:/cplatform/gmp-4.1/include utilsSe
g.c
g++ -o abc -g  readFile.o def.o surfSeg.o displaySolution.o main.o cleanPreimage
.o recoPlane.o viewer.o geodes.o utilsSeg.o     -Lc:/cplatform/cygwin/lib/w32api
  -Lc:/cplatform/gmp-4.1/lib  -Lc:/cplatform/cygwin/lib/qt3/lib  -Lc:/cplatform/
libqglviewer-2.3.0/QGLViewer   -lopengl32 -lgmp -lGLU32 -lglut32 -lm -lglib -lqt
-mt  -lQGLViewer
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: au
to-importing has been activated without --enable-auto-import specified on the co
mmand line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.Info: resolving vtable for QGLViewerby linking to __imp
___ZTV9QGLViewer (auto-import)
Info: resolving QString::shared_null       by linking to __imp___ZN7QString11sha
red_nullE (auto-import)

Administrator@pc /cygdrive/e/graphite/abc
$ ls -la abc
-rwxr-xr-x 1 Administrator None 624749 Sep 10 16:06 abc

Administrator@pc /cygdrive/e/graphite/abc
$ ./abc
Could not find ./abc !

Administrator@pc /cygdrive/e/graphite/abc
$ which abc
which: no abc in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Progra
m Files (x86)/MiKTeX 2.7/miktex/bin:/cygdrive/c/Program Files (x86)/SPRING/Bin:/
cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbe
m:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/90/Tools/binn/:/cygdrive/
c/Program Files (x86)/MATLAB/R2008a/bin:/cygdrive/c/Program Files (x86)/MATLAB/R
2008a/bin/win64: C:/CPlatform/cygwin/bin: C:/CPlatform/cygwin/usr/bin: C:/CPlatf
orm/cygwin/lib/qt3/bin: C:/Cplatform/cygwin/usr/X11R6/bin:/usr/lib/lapack)

Administrator@pc /cygdrive/e/graphite/abc
$ cygcheck abc.exe;type abc.exe; file abc.exe; getfacl abc.exe
Error: could not find abc.exe
bash: type: abc.exe: not found
abc.exe: MS-DOS executable PE  for MS Windows (console) Intel 80386 32-bit
# file: abc.exe
# owner: Administrator
# group: None
user::rwx
group::r-x
mask:rwx
other:r-x

Administrator@pc /cygdrive/e/graphite/abc
$

On Wed, Sep 10, 2008 at 3:54 PM, Dave Korn <dave.korn@artimi.com> wrote:
> Maika V wrote on 10 September 2008 14:41:
>
>> 4. Type './abc',  get message  'Could not find ./abc !'. I get the
>> same message when type './abc.exe'
>
>  What shell are you using?  Bash always says:
>
> $ ./foo
> bash: ./foo: No such file or directory
>
>  Maybe you are using another shell?  If your report is not accurate, nobody
> can correctly diagnose your problem.
>
>> 5. Type 'where abc', it returns full path to abc.exe
>
>  "where", or "which"?  There is no such thing as "where" in cygwin.  If your
> report is not accurate, nobody can correctly diagnose your problem.
>
>  Please run this again: the compile, followed by 'ls -la abc*', followed by
> './abc', then 'which abc', then "cygcheck abc.exe; type abc.exe ; file
> abc.exe; getfacl abc.exe", and /cut and paste/ the results directly from your
> shell window into your reply mail.
>
>  Please also run "cygcheck -s -r -v > cygcheck.out", and send the generated
> cygcheck.out file **as an attachment**.
>
>  That should give us a bit more to go on.
>
>    cheers,
>      DaveK
> --
> Can't think of a witty .sigline today....
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>

Attachment: cygcheck.out
Description: Binary data

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]