Boost logo

Boost Users :

From: dvir schirman (dvir.boost_at_[hidden])
Date: 2006-05-16 09:57:54


Hi

I try to use the random library in order to create a noise signal with
normal distribution.
I'm using Cygwin platform, and I'm using g++ compiler.
I wrote:
#include <boost/random.hpp>

at the beginning of my header file.
and when I tried to compile I got the following error message:

In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/cassert:48,
                 from ../boost/boost/random/linear_congruential.hpp:20,
                 from ../boost/boost/random.hpp:36,
                 from actor.H:12,
                 from tdagent.H:11,
                 from main.C:1:
/usr/include/assert.h:6: error: expected unqualified-id before string
constant
/usr/include/assert.h:6: error: expected `,' or `;' before string constant
main.C, tdagent.H, actor.H are files that I've written.
I am not familiar with assert.h, I guess it's part of the c++ headers, and
that there shouldn't be an error in it.

Hope someone can help me solve it.
Dvir.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net