1>Scene.obj : error LNK2005: "unsigned int TVAO" (?TVAO@@3IA) already defined in Text_Render.obj
1>Scene.obj : error LNK2005: "unsigned int TVBO" (?TVBO@@3IA) already defined in Text_Render.obj
1>Scene.obj : error LNK2005: "class std::map<char,struct Character,struct std::less<char>,class std::allocator<struct std::pair<char const ,struct Character> > > Characters" (?Characters@@3V?$map@DUCharacter@@U?$less@D@std@@V?$allocator@U?$pair@$$CBDUCharacter@@@std@@@3@@std@@A) already defined in Text_Render.obj
1>Scene.obj : error LNK2005: "class std::vector<int,class std::allocator<int> > letterMap" (?letterMap@@3V?$vector@HV?$allocator@H@std@@@std@@A) already defined in Text_Render.obj
1>Scene.obj : error LNK2005: "class std::vector<struct glm::mat<4,4,float,0>,class std::allocator<struct glm::mat<4,4,float,0> > > T" (?T@@3V?$vector@U?$mat@$03$03M$0A@@glm@@V?$allocator@U?$mat@$03$03M$0A@@glm@@@std@@@std@@A) already defined in Text_Render.obj```
#(Solved)Linker errors
6 messages · Page 1 of 1 (latest)
I'm getting these linker errors in my project regarding text from a header file
I've tired to extern the variables to the cpp file but that didn't work
wait got it working