Jump to content
  • Advertisement
Sign in to follow this  
supagu

SWIG - Singleton template error

This topic is 4813 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay, im trying to get swig working (http://www.swig.org) so i can use my c++ dll in c#. Now, i have a singleton tempalte class, which i inlcude in to my i file which appears to compile fine (by compile i mean call swig.exe to generate wrappers). But when i go to include a class that uses the singleton it says: time.h(24): Warning(401): Nothing known about base class 'Singleton<Time >'. Ignored. time.h(24): Warning(401): Maybe you forgot to instantiate 'Singleton<Time >' using %template. BUT i have this line before my include (after i have included my singleton header): %template(TimeSingleton) Singleton<Time>; BUT this line generates the following warning: e:\SiphonGL2\Engine\SiphonGL2.i(31): Error: Template 'Singleton' undefined. any ideas how to fix it? it seems to not be including or finding my singleton class even though its included!

Share this post


Link to post
Share on other sites
Advertisement
You say the headef file for singleton is included, but do you also have the header for Time?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!