Hii, there's been a lots of obstacles on my first intro making BUT most of them have been resolved either by trying hard or looking for threads on forums
BUT this time i can't find the answer anywhere, so i ask your help to solve this puzzle
on my main.c project (Code::Blocks always create it with .c when using the OpenGL Project template BUT i still use C++ on it) i have included this ufmod.h header:
https://pastebin.com/raw/UMuqxB6h (Note that it specifies Compiler: Visual C, Dev-C++ BUT i want to use Code::Blocks :c)
and have this function to play music
/* music function */
void play_xm(){
uFMOD_PlaySong((char*)1, 0, XM_RESOURCE);
}and of course, call it inside of the main() function with play_xm();
also i have included a main.rc resource file to the project with not much besides the xm song data i want to play
is the one that comes in the jmp2pat.rc of the uFMOD examples, also i kept the example's comments on it for nowhttps://pastebin.com/raw/fQDRwAVPand when i run it, it pops the following error at building
||=== Build: Release in test (compiler: GNU GCC Compiler) ===|
obj\Release\main.o:main.c|| undefined reference to `uFMOD_PlaySong@12|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 6 second(s)) ===|though, if i comment the play_xm(); function on main() it compiles with no errors nor warnings
can someone help me please? thanks a lot in advance!
