“Symbol(s) not found for architecture x86_64” on QtCreator project

I’m getting the error

Symbol(s) not found for architecture x86_64

Trying to compile a project on QtCreator. It happens when I try to create an instance of an user defined class, Layer. That class consists of a header, layer.h, and a implementation, layer.cpp. It was tested and works in another programs. On my project, it is included in qtwidget.h and the error happens when I try to use it on qtwidget.cpp. For example:

Layer<double> text("pq.txt",0.5,0.5,0.5);

Having this line on qtwidget.cpp is enough for the error to show up.

This is such a generic error that I’m clueless on how to isolate it any further, but if it helps, I’ve included the whole project on this git repo.

Leave a Comment