spinal
February 11, 2019, 9:21pm
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"
Hanski
February 11, 2019, 9:40pm
2
Do you have?
#define PROJ_ENABLE_SOUND 1
2 Likes
spinal
February 12, 2019, 6:51am
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
Hanski
February 12, 2019, 7:22am
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.
1 Like
spinal
February 12, 2019, 6:24pm
5
Everything seems to be included. My joebert game builds properly, I’ll just clone that.
jonne
February 12, 2019, 7:10pm
6
Aha!
It means some .cpp file is not marked for inclusion in the compilation list (Project properties)