Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 24 Sep 2015 01:30 PM |
PlaySound("bird.wav", NULL, SND_ASYNC);
theres a file named bird.wav in the same folder as the CPP file
this is the dumb nonsense error:
undefined reference to 'PlaySoundA@12' |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 24 Sep 2015 01:54 PM |
so no one else gets that error...i just search how to play sounds and that line seems to be working for EVERYBODY
except me
im raging atm
this should not be erroring
at
all |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 02:04 PM |
| This may help you: cplusplus . com / forum / beginner / 733 / |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 02:05 PM |
This also looks particualrly useful: stackoverflow . com / a / 20105088
You need to add the library in lol |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 24 Sep 2015 02:10 PM |
i added in "winmm"
and it still returns same f'ing error
halp |
|
|
| Report Abuse |
|
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
| |
|
skyarex
|
  |
| Joined: 21 Mar 2010 |
| Total Posts: 12989 |
|
|
| 24 Sep 2015 03:19 PM |
You need to say exactly where the file is on your computer.
"Don't Panic"- HHGTTG |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 24 Sep 2015 03:28 PM |
its located in the desktop
this is what i wrote now
C:\Users\MyNameHere\Desktop\bird.wav
(changing mynamehere to my name ofc)
the file is a wav file and its named bird |
|
|
| Report Abuse |
|
|
skyarex
|
  |
| Joined: 21 Mar 2010 |
| Total Posts: 12989 |
|
|
| 24 Sep 2015 03:33 PM |
When I was messing with .wav files on python, it had to be written like this:
PlaySound("C:\Users\MyNameHere\Desktop\bird.wav", NULL, SND_ASYNC);
"Don't Panic"- HHGTTG |
|
|
| Report Abuse |
|
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
|
| 24 Sep 2015 04:30 PM |
| the problem is ur not using SDL or OpenAL silly |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
|
| 24 Sep 2015 05:57 PM |
"C:\Users\MyNameHere\Desktop\bird.wav" I don't know much of anything about C, but I certainly hope you're using a string literal for this (As I'm assuming even C has escape sequences) |
|
|
| Report Abuse |
|
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 25 Sep 2015 12:23 AM |
| Are you passing the correct arguments to the compiler/linker? Seems like you're missing a library. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 25 Sep 2015 08:20 AM |
| then how do i get the library e.e |
|
|
| Report Abuse |
|
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 25 Sep 2015 08:41 AM |
| Pass -lLIBRARYNAME to the compiler. |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 25 Sep 2015 08:43 AM |
you're dumb, fedorakid
-=Robo=- |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 25 Sep 2015 08:52 AM |
robocu, out.
i know how to get libraries and using like #include
and also the linker settings
but yesterday i added winmm and nothing happens |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 25 Sep 2015 08:54 AM |
and also
its still not working
what do i put in the linker settings
or how do i fix this crap e.e |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 25 Sep 2015 08:54 AM |
goes to show you can't take your own medicine kill yourself
-=Robo=- |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 25 Sep 2015 08:55 AM |
dont know what you mean
kys
wont be replying to scum like u anymore kkthx |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 25 Sep 2015 08:56 AM |
kys you're terrible at programming yet you act superior to people you don't even know run in front of traffic
-=Robo=- |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|