retitle -1 name space pollution: FLAC/assert.h conflicts with
Just to be sure, this is in no way related to boost at all. The
following code fails to compile when -I/usr/include/FLAC is passed to
the compiler command line:
$ cat test.c
#include
int main()
{
assert (0);
return
Am Freitag, den 19.04.2013, 11:57 +0200 schrieb raphael:
> GCC first looking for header files in user specified search paths.
Then FLAC/assert.h should do
#include_next
to prevent it from including itself again:
http://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html
- Fabian
__
Hi,
I have no idea, though, why the compiler does this. Maybe because the
.c header is explicitely included. Changing to
include instead of , as discussed in the code
comment, should fix the issue as well. I have yet not tried this out,
though. - Fabian
I tried to change #include to #in
Hi,
well, that's an interesting bug, indeed. Especially, since `pkg-config
--cflags flac` does not add anything more than "-I/usr/include/FLAC" to
the command line.
Am Mittwoch, den 17.04.2013, 12:26 +0200 schrieb raphael:
> # mv /usr/include/FLAC/assert.h{,.bak}
I come to the same conclusion. I
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
class test
{
public:
int method() {return 1;}
};
int main()
{
boost::shared_ptr a(new t
To: pkg-multimedia-maintainers@lists.alioth.debian.org
From: raph...@gfreedom.org
Subject: libflac-dev conflicting with boost::shared_ptr
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