www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Probably a boost question but I'm in a catch 22...

↑ ↓ ← dan <dan_member pathlink.com> writes:
Hi, I suscribed to the boost mailing list to ask a question; and I got an
automated reply to the effect that my first post would be moderated; but later I
got another automated email about the moderator being on vacation; and I'm in a
hurry, so I hope it's okay for me to re-post here, in the hope someone might be
able to help me.

I'm using latest betas for Digital Mars, STLport and BOOST, and I'm trying to
compile a state-machine using boost's fsm::state_machine.

My include line is as follows:
G:\boost-1.30.2;G:\boost-1.30.2\boost\mpl;G:\boost-1.30.2\libs\mpl\example\fsm;G:\dm\STLport-5.0-1031\stlport;G:\dm\include

Here's the top of my file:

..............................................................................
#include <iostream>
#include "boost/mpl/list.hpp"
#include "state_machine.hpp"

namespace mpl = boost::mpl;

class rec_frm_sm : fsm::state_machine<rec_frm_sm>
{
public:
..............................................................................

What I get on the output window is:

sc rec_frm.cpp -Ae -Aa -r -mn -C -WA -S -3 -a8 -c -gf -IG:\boost-1.30.2
-IG:\boost-1.30.2\boost\mpl -IG:\boost-1.30.2\libs\mpl\example\fsm
-IG:\dm\STLport-5.0-1031\stlport -IG:\dm\include -orec_frm.obj 
Error: G:\boost-1.30.2\boost/mpl/aux_/preprocessed/plain /quote.hpp(7): no type
for argument 'T'
Error: G:\boost-1.30.2\boost/mpl/aux_/has_type.hpp(23): no type for argument 'T'
....................................
Build failed


I'm not sure how to track the include path for quote.hpp and has_type.hpp. I
noticed there's a link at www.boost.org for tracking header file inclusion, but
the link appears to be broken.

Any help would be appreciated.
Yours.
dan
Nov 30 2003
↑ ↓ dan <dan_member pathlink.com> writes:
It's a compiler bug, which you should report to the Digital Mars
people.  Aside from that, you might try adding
-DBOOST_MPL_BROKEN_OVERLOAD_RESOLUTION to your command-line.

HTH,

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
Dec 01 2003
↑ ↓ → dan <dan_member pathlink.com> writes:
Just downloaded the new 8.38 non-beta, and the problem still shows up: No type
for template parameter T.

Tried Dave Abrahams' suggestion (-DBOOST_MPL_BROKEN_OVERLOAD_RESOLUTION) but it
doesn't seem to make any difference.

If you care to try it out, and I'm assuming that you have boost, I'm trying to
compile,

G:\boost-1.30.2\libs\mpl\example\fsm\player.cpp

Yours.
dan
Dec 01 2003