Templates Instantiation error

yes9111 yes9111 at gmail.com
Fri Dec 15 08:49:55 UTC 2017


Hey Y'all,

I'm trying to write a simple utility class to read rows from a 
SQLite3 database using compile time parameters, but I've run into 
a weird problem.

https://pastebin.com/eTnbRjEd

If I try to instantiate a Reader class I'm hitting a linker error 
saying

Error 42: Symbol Undefined _sqlite3_open

But if I change the Reader definition to include a dummy template 
argument and instantiate it with any dummy type argument, the 
code compiles ok. Am I missing something?



More information about the Digitalmars-d-learn mailing list