Panel użytkownika
Nazwa użytkownika:
Hasło:
Nie masz jeszcze konta?

[Irrlicht] Kompilacja programu

Ostatnio zmodyfikowano 2010-02-21 12:57
Autor Wiadomość
Drraven
Temat założony przez niniejszego użytkownika
[Irrlicht] Kompilacja programu
» 2010-02-21 11:35:42
Witam, czołem, itp, itd
Mam problem i bawię się już z nim od soboty nie mogę skomplikować żadnego programu z Irrlicht. Nie ważne czy to na Ms visual studio 2008 express, Code::Block, czy na wet na Dev-C++.
Np. kod z kursu:
C/C++
#include <irrlicht.h>

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;

int main()

{
    IrrlichtDevice * device = createDevice( EDT_OPENGL, core::dimension2d < s32 >( 800, 600 ),
    32, false, false, false, 0 );
   
    video::IVideoDriver * video = device->getVideoDriver();
    scene::ISceneManager * menage = device->getSceneManager();
    menage->addCameraSceneNode( 0, vector3df( 0, 30, - 40 ), vector3df( 0, 5, 0 ) );
   
    while( device->run() )
   
    {
        video->beginScene( true, true, video::SColor( 255, 0, 10, 200 ) );
        menage->drawAll();
        video->endScene();
    }
    device->drop();
    return 0;
}

wtedy(Ms) Wywala takie cuś:

------ Build started: Project: irr, Configuration: Debug Win32 ------
Compiling...
main.cpp
d:\x\x\x\x\main.cpp(12) : error C2664: 'irr::createDevice' : cannot convert parameter 2 from 'irr::core::dimension2d<T>' to 'const irr::core::dimension2d<T> &'
        with
        [
            T=irr::s32
        ]
        and
        [
            T=irr::u32
        ]
        Reason: cannot convert from 'irr::core::dimension2d<T>' to 'const irr::core::dimension2d<T>'
        with
        [
            T=irr::s32
        ]
        and
        [
            T=irr::u32
        ]
        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Build log was saved at "file://d:\x\x\x\x\Debug\BuildLog.htm"
irr - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Wie ktoś czym może być to spowodowane...
PS:
Mam Irrlichta w wersji 1.7.1

 
@Pietrzuch:
Kompilacja nie komplikacja. ;p
P-13998
Elaine
» 2010-02-21 12:37:02
IrrlichtDevice * device = createDevice( EDT_OPENGL, dimension2d < u32 >( 800, 600 ), 32, false, false, false, 0 );
P-13999
Drraven
Temat założony przez niniejszego użytkownika
» 2010-02-21 12:57:02
dzięki "fal", już wiem co źle było
P-14000
« 1 »
  Strona 1 z 1