array ambigious

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

array ambigious

Post by netpipe »

gcc6 has something strange to say about these and wont compile.
reference to 'array' is ambigious

from rogerborgs formation demo.
array<Unit *> Units;

just some code i had
array<ISceneNode*> obstacleNode;

not sure how to fix them yet
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: array ambigious

Post by netpipe »

irr::core:: infront seemed to fix it
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: array ambigious

Post by CuteAlien »

This usually happens when you are doing stuff like "using namespace" - but have different namespaces which have classes with the same names in them. Like STL (std) and Irrlicht (irr).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply