Re: MSVC Event Queue issues
"res" <[email protected]>
| Newsgroups | gmane.comp.graphics.crystalspace.devel |
|---|---|
| Message-ID | <[email protected]> |
> The second line is the culprit - the new csEventQueue(object_reg) call, > to be precise. The linker errors are the following: > > Error 3 error LNK2001: unresolved external symbol "public: virtual > class csPtr<struct iEvent> __thiscall csEventQueue::CreateEventW(void)" > (?CreateEventW@csEventQueue@@UAE?AV?$csPtr@UiEvent@@@@XZ) > F:\work\CS\mk\msvc10\context.obj The problem is that the Windows SDK headers do a “#define CreateEvent CreateEventW” somewhere. The workaround: #undef CreateEvent (after the <windows.h> #inclusion). Actually, CS has a collection of such #undefs for various names otherwise #defined by the Windows SDK headers in include/csutil/win32/sanity.inc. CreateEvent is probably a candidate for addition to that file. CS includes that file from it's headers, but of course you can also #include it from your own sources. -f.r. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Crystal-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-develop