Thank you very much, Alex. You saved me tons of time after looking at LD and make references without clue. It works.
I am also curious why we need the dictionary file, say myclass.d. I was suspecting somehow I need to link it with the library file to my c++ program. Since we don’t, I want to know why it is there at the first place. Thanks.
myclass.d is not a dictionary file but a (makefile) dependency files. This includes the list of (include) file you source file depend on so that ACLiC can recompile your library when it is needs to be.