Package: libflac-dev
Version: 1.2.1-6

When I used together this libraries I couldn't build a project.
Here is a simple example (including my simple and ugly solution):

$ cat main.cpp
#include <boost/shared_ptr.hpp>
class test
{
    public:
        int method() {return 1;}
};
int main()
{
    boost::shared_ptr<test> a(new test);
    a->method();
    return 0;
}
$ g++ main.cpp
$ g++ main.cpp `pkg-config --cflags flac`
In file included from /usr/include/boost/shared_ptr.hpp:17:0,
                 from main.cpp:1:
/usr/include/boost/smart_ptr/shared_ptr.hpp: In instantiation of ‘T* boost::shared_ptr<T>::operator->() const [with T = test]’:
main.cpp:10:3:   required from here
/usr/include/boost/smart_ptr/shared_ptr.hpp:424:9: error: ‘assert’ was not declared in this scope
$ su
Hasło:
# mv /usr/include/FLAC/assert.h{,.bak}
# exit
$ g++ main.cpp `pkg-config --cflags flac`
$

I think that bug is more complicated. I had problems with creating this example, it worked for the second time.

Additional info:
g++ version: g++ (Debian 4.7.2-5) 4.7.2
libboost-dev version: 1.49.0.1

I'm using Debian GNU/Linux Wheezy.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to