Error compiling V 0.19 under Linux

Added by Fulvio Senore 71 days ago

I have succesfully compiled V 0.19 unser Windows, but when I tried to make it under Linux I got an error about an extra ';' in value.cpp, line 163.
Here are lines 160-163:

DataBuf Value::dataArea() const
{
return DataBuf(0, 0);
};

I changed "};" to "}" in the last line and everything worked as expected.

Just to let you know.

Fulvio


Replies

RE: Error compiling V 0.19 under Linux - Added by Andreas Huggel 70 days ago

Fixed, thanks. But I'm curious, what platform, Linux distro and compiler version are you using?
None of the versions I tested with complained about this obvious thing.

Andreas

RE: Error compiling V 0.19 under Linux - Added by Fulvio Senore 70 days ago

I use Ubuntu 6.06 with the default compiler: gcc 4.0.3. I use an old version so there are good chances that the compiled program will work on most recent distros.
I have also found the error when I compiled exiv2 under OS X 10.4.
It looks like only older versions of gcc complain about that error.

Fulvio