Hello,

> > > gcc -v
> > Reading specs from
> > /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
> > gcc version 2.96 20000731 (Red Hat Linux 7.0)
> > > gcc -O2 -s -o Jflash-linux Jflash.cpp
> If the extension is .cpp, the compiler thinks it's a C++ 
> file, which is
> certainly not the case for Jflash. Rename the file to Jflash.c, or use
> the "-x c" flag to tell the compiler it is actually C source.
If you try to compile the JFlash source as C you will most probably fail.
Although the program is not written object oriented, the source uses some of
the "freedom" you have in C++ like declaring variables in the middle of a
function when they are needed (no, I personally don't like this even when
using C++). It compiles fine when treating it like a cpp file. The
corresponding makefile does

g++ -O2 -g -o jflash jflash.cpp

I modified jflash to solve this problem, but there is no maintainer contact
address or something in the source. Anyone interested in it?

Regards,
Thilo

--  
Thilo A. Fromm, Hardware Development
DResearch Digital Media Systems GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 (30) 515932-221  mailto:[EMAIL PROTECTED]
Fax: +49 (30) 515932-299      http://www.dresearch.de



_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to