I'm currently making some lib files to some new controls that im playing around with. The lib's compile fine but when I try to use them together in a project I am getting linking errors talking about duplicate symbols. (see below)

cdLV.lib(cdLV.obj) : error LNK2005: _GetMemPointer@4 already defined in ddcp.lib(ddcp.obj)
cdLV.lib(cdLV.obj) : error LNK2005: _SumWidthTo@4 already defined in ddcp.lib(ddcp.obj)
TestLV.exe : fatal error LNK1169: one or more multiply defined symbols found

I can understand why this is happening and obviously I could just rename the procs to something different, but how would I ensure that my proc names are going to be unique across all the libraries that I may develop or others that I may use? These procs are only ever going to be called internally within the library and never accessed from outside.
Posted on 2003-05-19 14:07:55 by MurkyT
if youre using MASM, you may possibly use "option proc:private". Then you'll have to declare all public procs explicitely as public, though.

Japheth
Posted on 2003-05-19 15:23:33 by japheth
Thanks Japheth - that worked well and should make things alot easier for me!
Posted on 2003-05-19 15:33:36 by MurkyT