Re: MSVC Event Queue issues

Sam Devlin <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <CAL0_xOoqPy0jWzywN=d7MNM9xzFe0VLcvpPLOLRZb0Xx0WKKKw@mail.gmail.com>
Hi Andrei,

This looks similar to a problem I had with a plugin for CEL missing a link
entry in the jam file.
Perhaps following the thread here:
http://comments.gmane.org/gmane.comp.graphics.crystalspace.devel/3815
may help as this solved the problems I was having.

Kind regards,
Sam.

On Tue, Jul 17, 2012 at 10:31 AM, Andrei Bârsan <[email protected]> wrote:

>  Hello,
>
> I'm having some pretty strange linker problems when building the cs editor
> app from the soc2012/editor branch, namely, with the csEventQueue. This is
> the code causing the linker errors - commenting it our allows the app to
> run (and crash soon after due to the missing event queue of course):
>
> csRef<iEventQueue> mainEventQueue =
>     csQueryRegistry<iEventQueue> (object_reg);
>   eventQueue.AttachNew (new csEventQueue (object_reg));
>
> *I am using MSVC10 on Windows 7 x64.*
> 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
> Error    2    error LNK2001: unresolved external symbol "public: virtual
> class csPtr<struct iEvent> __thiscall csEventQueue::CreateEventW(struct
> CS::StringID<struct CS::StringSetTag::General> const &,bool)"
> (?CreateEventW@csEventQueue@@UAE?AV?$csPtr@UiEvent
> @@@@ABU?$StringID@UGeneral@StringSetTag@CS@@@CS@@_N@Z)
> F:\work\CS\mk\msvc10\context.obj
> Error    1    error LNK2001: unresolved external symbol "public: virtual
> class csPtr<struct iEvent> __thiscall csEventQueue::CreateEventW(char const
> *)" (?CreateEventW@csEventQueue@@UAE?AV?$csPtr@UiEvent@@@@PBD@Z)
> F:\work\CS\mk\msvc10\context.obj
>
> I have no idea what could be wrong - the implementation of the event queue
> (from libcrystalspace) is linked against the editor app project, it builds
> fine, so the symbols shouldn't be unresolved. The libcrystalspace rebuilds
> fine with 0 Warnings.
>
> Am I missing something? Does anyone using MSVC have any helpful tips?
> Regards,
> Andrei Bârsan
>
>
> ------------------------------------------------------------------------------
> 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
>
>

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.