PDA

View Full Version : Link Errors: PLEASE HELP!



wire
11-18-2000, 07:03 PM
font.obj : error LNK2005: "struct HDC__ * hDC" (?hDC@@3PAUHDC__@@A) already defined in main.obj

anyone know how to fix this? I've been trying for nearly 2 hours.

wire

Deiussum
11-19-2000, 02:23 PM
It appears that you are trying to use a global HDC hDC, and defining it in two different files. Put something like this in a common header...

extern HDC hDC;

Then in only ONE of the source files you use for your project do this...

HDC hDC;