Quote:
> undefined reference to 'Sendmessage'
> I am compiling with the flag -mwindows, and have include <windows.h>
> Please, please - any suggestions as to where I'm going wrong ?
Well, I don't know win32 API, but here are some reasons for that error....
1. C is case sensitive, maybe your not spelling it right.
2. You are not inlcuding the correct library that has that symbol in it.
3. Your libraries or compiler are broken,....
including the right headers will not help you with this particular error,
which is more a linker error then a compiler one. Read the documentation
on Win32 API, and on mingwin32 and find out in what library Sendmessage is
defined, and if that library is linked by default with the -mwindows flag.