demos problem

3DRT

14-06-2007 10:19:36

hello there,
i m using VS2005 and i can t run demos successfuly cause of an error C2512. I meet this problem each demo.

[soundManager = new OgreAL::SoundManager() <-no appropriate default constructor available]

I tried to change the identifier and take eihort demo but nothing change :roll:
Is someone have an idea to resolve that ?
TX

CaseyB

18-06-2007 15:12:55

You need to update to the latest in the SVN Repo. It used to be that you needed to pass in a pointer to the SceneManager, but I removed that dependency.

3DRT

18-06-2007 15:45:15

tx for your reply,
i had already update demos on svn repo and i still get this error.
Do you think i have to update all the files of svn ??

CaseyB

18-06-2007 16:10:17

Yes, the demos have to match the version of OgreAL, so you need to update the whole thing at the same time.

3DRT

19-06-2007 10:09:54

Thank you!
I have another request for you. I would like to load MIDI file on OgreAL and i can t get a librairy. I was thinking at TSE3 librairy but it seems to be difficult. Have you already tried that ? How can import MIDI file ? Do you know a library which deal with those files ?

CaseyB

19-06-2007 17:28:36

Nope, I've never tried to load a MIDI file. That something that I'll keep in mind, but I have a lot of stuff to take care of first.

3DRT

20-06-2007 10:29:10

Thanks for you answer and i will try to find a solution to those MIDI files very soon.
I update evrything on svn report and it can t compile. I don t have the constructor default problem anymore but i have an other one.
Normally it should work but ...
I don t really know where the problem is from.
I give you the log :


Compiling...

BetaGUI.cpp

Listener.cpp
c:\ogresdk\ogreal\include\ogrealsound.h(263) : error C2146: syntax error : missing ';' before identifier 'mFormat'
c:\ogresdk\ogreal\include\ogrealsound.h(263) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\ogresdk\ogreal\include\ogrealsound.h(263) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

main.cpp
c:\ogresdk\ogreal\include\ogrealsound.h(263) : error C2146: syntax error : missing ';' before identifier 'mFormat'
c:\ogresdk\ogreal\include\ogrealsound.h(263) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\ogresdk\ogreal\include\ogrealsound.h(263) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

OgreApp.cpp
c:\ogresdk\ogreal\include\ogrealsound.h(263) : error C2146: syntax error : missing ';' before identifier 'mFormat'
c:\ogresdk\ogreal\include\ogrealsound.h(263) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\ogresdk\ogreal\include\ogrealsound.h(263) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Generating Code...


Would you please help me one more time if you have an idea of course.

3DRT

22-06-2007 09:33:12

Ok,
don t worry, i fix those error and evrything sounds great now.