[SOLVE]undefined reference to `Demo::MainEntryPoints::mainAppSingleThreaded

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


User avatar
remizero
Gnoblar
Posts: 4
Joined: Mon May 08, 2023 3:50 pm

[SOLVE]undefined reference to `Demo::MainEntryPoints::mainAppSingleThreaded

Post by remizero »

Hi everyone, I'm new to the forum and new to working with Ogre3D v2.3.1.

I searched for a long time in the forum to see if I could find any reference to errors with the tutorials, but none of the many that I saw talk about my problem.

I've been reading the documentation a lot and after some time I've started doing the tutorials and examples.

So far the tutorials from 00 to 06 have compiled correctly for me, with some personal modifications that I have made to run them all within the same project, but when trying to compile the tutorial "TutorialCompute01_UavTexture", I get the following error:

Code: Select all

:-1: error: mainUAVTextures.o: in function `mainApp(int, char const**)':
/home/remizero/projects/ogre/a/mainUAVTextures.cpp:100: error: undefined reference to `Demo::MainEntryPoints::mainAppSingleThreaded(int, char const**)'

All this from the main function of the original file of the tutorial in question where the method is called

Code: Select all

return Demo::MainEntryPoints::mainAppSingleThreaded ( DEMO_MAIN_ENTRY_PARAMS );

I've been working with C++ for a while, and I understand that according to the error, the problem is that this method is not defined and indeed, in the MainEntryPoints.cpp file it is not defined, nor in the main file of the tutorial where it does some implementations of the MainEntryPoints.h header file definitions.

But so far in the previous tutorials the call from the main has been different and within the other tutorials this new code model is presented.

My point is, what do I have to do (I understand that I should override this method) and what should I put inside it.

It should be noted that I have not changed anything in the code, except the location of the files.

Thanks in advance.
Sorry for my bad English.

User avatar
remizero
Gnoblar
Posts: 4
Joined: Mon May 08, 2023 3:50 pm

Re: [SOLVE]undefined reference to `Demo::MainEntryPoints::mainAppSingleThreaded

Post by remizero »

In the end I have managed to elucidate the problem that has been presented to me.

The problem was that the MainLoopSingleThreaded.cpp and MainLoopMultiThreaded.cpp files had been commented out for the previous tutorials and therefore the missing implementations were not recognized.

Now everything works great.

Thank you anyway.