I am trying to use directX9 in my program. It gives me
[Linker error] undefined reference to `render()' .
What should I do?
I am trying to use directX9 in my program. It gives me
[Linker error] undefined reference to `render()' .
What should I do?
>>What should I do?
Define it!
Seriously, post some code, state compiler/OS, make sure you're linking the
directx lib files with your project - other than that there's not much I can offer.
No No's:
fflush (stdin); gets (); void main ();
Goodies:
Example of fgets (); The FAQ, C/C++ Reference
My Gear:
OS - Windows XP
IDE - MS Visual C++ 2008 Express Edition
ASCII stupid question, get a stupid ANSI
I declared render:
I use it inside the message pump:Code:HRESULT render(void);
I have tryed to link to all libraries I have. I have linked to DirectX9 libraries and to the libraries, which are in Dev-C++ folder lib. It doesn't work.Code:MSG msg; int status; while ((status = GetMessage (&msg, 0, 0, 0)) != 0) { if (status == -1) return -1; DispatchMessage (&msg); render(); // Here takes place rendering. } return msg.wParam;
I don't know anything about DirectX, but....well just a random guess. Isn't that the function that YOU'RE supposed to write?
The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.