-
I had some code that was working as single files during testing, and now I have started to consolidate everything into a single application. I am now getting an unresolved external symbol on my read_input function. As far as I can tell, this is how I've written it, and how it should work:
The error is
which I interpret as not being able to find this function: which appears to match what I've defined and declared? Is my reading of this error correct? Any ideas on how to chase this one down? I know this is a little out of your remit... My full code (a very much work in progress) is available https://github.com/rowlesmr/pdqcif/tree/main/pdqcif/src |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
In |
Beta Was this translation helpful? Give feedback.
-
Actually, I think it's much simpler: You put the definition of a template function into the cpp, but it needs to go to the header. Otherwise it won't get instantiated and therefore the linker won't find it. |
Beta Was this translation helpful? Give feedback.
Actually, I think it's much simpler: You put the definition of a template function into the cpp, but it needs to go to the header. Otherwise it won't get instantiated and therefore the linker won't find it.