Re: [CsMain] A Compile question or 2.
Jorrit Tyberghein <[email protected]> Mon, 12 Mar 2012 20:16:36 +0100
| Newsgroups | gmane.comp.graphics.crystalspace.general |
|---|---|
| Message-ID | <CAA49VV+FEdUdcPurPZnJ8FHOnds1ZMa5ceRTjezW6H5mA8Krpg@mail.gmail.com> |
On Mon, Mar 12, 2012 at 8:01 PM, Jim Sager <[email protected]> wrote: > Hello, > > My old computer got a virus, so I needed to reinstall windows. I lost all > my old CrystalSpace build and Mingw. So I needed to update. Some things > aren't updating friendly. > I have two projects I wrote. One is my animation maker tool. It > compiled and loaded up fine! > The other is my shell(the game). The shell has a compile error due to > upgrading to new version of MingW or C++ or something. > > The errors are: > simpmap.cpp:1560:96: error: expected primary-expression before ')' token > simpmap.cpp:1560:96: error: 'CS_LOAD_PLUGIN' was not declared in this scope > Replace with csLoadPlugin<iYourInterface> (plugin_mgr, "crystalspace.bla.bla"); > > -------------------------------------------------------------- > Question #2: > > Which syntax should I use: > 1 //csRef<iPluginManager> plugmgr (CS_QUERY_REGISTRY (object_reg, > iPluginManager)); > or > 2 //csRef<iPluginManager> plugin_mgr = csQueryRegistry<iPluginManager> > (object_reg) ; > > I can't get 1 to compile, and 2 is just something I lifted off the web, it > could be old > 2 is how it should be done now. Greetings, -- Project Manager of Crystal Space (http://www.crystalspace3d.org) and CEL (http://cel.crystalspace3d.org) Support Crystal Space. Donate at https://sourceforge.net/donate/index.php?group_id=649 Personal page: http://users.telenet.be/jorritTyberghein/ ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[email protected]?subject=unsubscribe