Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - FDO

Pages: [1]
1
Audio / CSFML Audio - Yet Another LINK Question
« on: February 27, 2019, 08:11:39 pm »
CSFML - Yet Another LINK Question

Using Visual Studio Express 2013 for Windows

Hi,

I have a fairly large, legacy C language, simulation app that currently supports sound via a late 90's audio library named SEAL.  I'd like to upgrade it to CSFML Audio.
I've created a project and simple C program (below) to help me understand the features of CSFML.

I installed SFML-2.5.1 and then dropped the CSFML-2.5.1 folders on top of it, merging them together.  I (theoretically) followed Project Setup instructions for PATHs and supporting files (see screenshots below).  When I build the project, compilation is fine but I get a unresolved external symbol LINK error, also shown below.

I've played with this for many hours now and my mistake eludes me.  Does anyone have any thoughts?

Thanks!
Brad

//****** EXAMPLE CSFML PROGRAM******//
#include <SFML/Audio/Sound.h>
#include <SFML/Audio/Music.h>

static void CSFMLSoundTest(void);

int main(int argc, char* argv[])
{
   int      i = 0;

   CSFMLSoundTest();
   return;
}

void CSFMLSoundTest(void)
{
   sfMusic *TestMusic;
   TestMusic = sfMusic_createFromFile("test.wav");
}
 

Output
1>noise1.obj : error LNK2019: unresolved external symbol __imp__sfMusic_createFromFile@4 referenced in function _CSFMLSoundTest@0
1>.\Release/randomprojects1.exe : fatal error LNK1120: 1 unresolved externals

Pages: [1]
anything