Linker configuration in Visual Studio 6
Posted: 2010-06-10T11:10:36-07:00
I am getting a lot of linking error like ...
Please tell me what do i have to do? How do i configure it in visual studio 6. I have installed the win32 binary.
Code: Select all
Compiling...
button.cpp
piddle.cpp
Magick lib DLL import interface
Magick module DLL export interface
MagickWand lib DLL import interface
MagickWand module DLL export interface
Magick++ lib DLL import
Generating Code...
Magick lib DLL import interface
Magick module DLL export interface
MagickWand lib DLL import interface
MagickWand module DLL export interface
Magick++ lib DLL import
Linking...
piddle.obj : error LNK2005: _main already defined in button.obj
piddle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char * __thiscall std::allocator<class Magick::Coordinate>::_Charalloc(unsigned int)" (__imp_?_Charalloc@?$allocator@VCoordinate@Magick@@@std@@QAEPADI@Z)
piddle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::allocator<class Magick::Coordinate>::deallocate(void *,unsigned int)" (__imp_?deallocate@?$allocator@VCoordinate@Magick@@@std@@QAEXPAXI@Z)
piddle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char * __thiscall std::allocator<class Magick::VPath>::_Charalloc(unsigned int)" (__imp_?_Charalloc@?$allocator@VVPath@Magick@@@std@@QAEPADI@Z)
piddle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::allocator<class Magick::VPath>::deallocate(void *,unsigned int)" (__imp_?deallocate@?$allocator@VVPath@Magick@@@std@@QAEXPAXI@Z)
piddle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char * __thiscall std::allocator<class Magick::Drawable>::_Charalloc(unsigned int)" (__imp_?_Charalloc@?$allocator@VDrawable@Magick@@@std@@QAEPADI@Z)
piddle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::allocator<class Magick::Drawable>::deallocate(void *,unsigned int)" (__imp_?deallocate@?$allocator@VDrawable@Magick@@@std@@QAEXPAXI@Z)
button.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
button.exe - 8 error(s), 0 warning(s)