Undefined reference to pokPlayStream()?


#1

I’m trying to transfer my music project from the web compiler to embitz, but I’m getting the following error…

C:\Users\Spinal\Documents\GitHub\PokittoLib\..\Mine\MusicPlayer\main.cpp|145|undefined reference to `pokPlayStream()'|

Am I missing something here? Is there a .h file I need offline that I don’t need online or something along those lines?

[edit]
I already have

#include "Pokitto.h"
#include "HWSound.h"

#2

Do you have?

#define PROJ_ENABLE_SOUND 1


#3

yup…
My_settings.h


#ifndef MY_SETTINGS_H
#define MY_SETTINGS_H

#define PROJ_MODE13             1   // mode 13 graphics 110x88x256
#define PROJ_DEVELOPER_MODE     0
#define PROJ_SOUND_BUFFERED     1
#define PROJ_ENABLE_SOUND       1     // 0 = all sound functions disabled
#define PROJ_AUD_FREQ           22050

#endif

#4

The linker cannot find the function. Check from the project settings that hwsound.cpp is included in the project. If it is, put some compiler error in the function body to see if it is really being compiled.


#5

Everything seems to be included. My joebert game builds properly, I’ll just clone that.


#6

Aha!

It means some .cpp file is not marked for inclusion in the compilation list (Project properties)