Hmmm... Mind beeing a little bit more concrete? What are you trying to do?
Normally an undefined reference occurs when you use a function found in a lib and forgot to link against that lib.
Maybe tell us what your prog should do, what headers and functions you use and somebody might know the answer...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, the header file just gives the interface, you have to link the library in. The way your do that is to give a compiler command line option of:
-lwinmm
I am guessing there on what the library name is. Search the forum, I worked with someone a couple of weeks ago and gave what libraries you need to link against.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you link against the correct lib (you can use a tool to investigate the libs entries)?
your library pathes are correct?
I vaguely remember also a "Posix Compliance problem" with some functions.
I don't remember on with plattform, and wether it resulted in compiler or link error.
Check the function and the compiler Options on compliance.
Greets
Pat
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm getting an error message:
undefined reference to 'timeGetTime@0'
I'm using Dev-c++ 4.9.7.0
Hmmm... Mind beeing a little bit more concrete? What are you trying to do?
Normally an undefined reference occurs when you use a function found in a lib and forgot to link against that lib.
Maybe tell us what your prog should do, what headers and functions you use and somebody might know the answer...
I'm trying to make an animation.
The function is found in mmsystem.h.
Should I do something else than just #include mmsystem.h to get it work ??
I had a linker error also in PlaySound()
I'm trying to make an animation.
The function is found in mmsystem.h.
Should I do something else than just #include mmsystem.h to get it work ??
I had a linker error also in PlaySound()
Yes, the header file just gives the interface, you have to link the library in. The way your do that is to give a compiler command line option of:
-lwinmm
I am guessing there on what the library name is. Search the forum, I worked with someone a couple of weeks ago and gave what libraries you need to link against.
Wayne
Check out this thread...
http://sourceforge.net/forum/message.php?msg_id=1791055
Wayne
Thanks. I've been trying to fix this for about a week.
you agree it's a lib-problem.
you link against the correct lib (you can use a tool to investigate the libs entries)?
your library pathes are correct?
I vaguely remember also a "Posix Compliance problem" with some functions.
I don't remember on with plattform, and wether it resulted in compiler or link error.
Check the function and the compiler Options on compliance.
Greets
Pat