Hi-
I'm a newb. that may have bit off more than he could chew. I made a nice
little static library to handle our file format. I figured it would be
clear to include a lib in the many projects that use the format rather than
copy and paste code all over the place.
I just tried to add it to the first application that uses the file format (a
plugin, dll) and after setting the include path and lib path, then trying to
make a call to a lib method, I get TONS of errors; Here are a few:
error LNK2005: __malloc_dbg already defined in MSVCRTD.lib(MSVCRTD.dll)
libcpd.lib(iostream.obj) : error LNK2005: "public: __thiscall
std::ios_base::Init::Init(void)" (??0Init@ios_base@std@@QAE@XZ) already
defined in msvcprtd.lib(MSVCP60D.dll)
...
LIBCD.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in
MSVCRTD.lib(cinitexe.obj); second definition ignored
LIBCD.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in
MSVCRTD.lib(cinitexe.obj); second definition ignored
....
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs;
use /NODEFAULTLIB:library
OK, now I really don't know where to start with this. I've wrapped all my
headers w/ #ifndef/#define stuff. ??
So I read some stuff
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_.2f.nodefaultlib.asp
And I played with excluding libraries that it was complaining about, but
then I get unresolvedExternal errors.
Any tips or suggestions? please?
Thanks-
Steve