I'm getting this output from the linker:




mind.obj : error LNK2001: unresolved external symbol _CoTaskMemFree@4
mind.exe : fatal error LNK1120: 1 unresolved externals


I've seen references to this in ole32 stuff but I'm not using any of those libraries. Any ideas before I start trying to hunt this down?
Posted on 2002-01-24 12:29:26 by rdaneel
It is strange. Maybe the obj file. Create again the obj file.
Posted on 2002-01-24 13:51:30 by CodeLover
rdaneel,

You must include the INCLUDE file and the LIBRARY file for OLE32.

include \masm32\include\ole32.inc

includelib \masm32\lib\ole32.lib

There is a toy in the latest release of MASM32 to find these for you, it is called LIBLIST.EXE. Just type in the name and double click or press enter on the name and it will tell you which linrary it is in.

Regards,

hutch@movsd.com
Posted on 2002-01-24 15:08:30 by hutch--
I'm not putting ole32.inc or ole32.lib in and now it is doing this with all of my programs.
Posted on 2002-01-24 15:31:30 by rdaneel