Click FreeImage.2017.sln Solutions
Click Generate dynamic library compiled project FreeImage
Note: C / C ++ compiler adds pre-defined pre-compiled FREEIMAGE_EXPORTS, a function to export
Click compiler generates a static library project FreeImageLib
Note: C / C ++ compiler adds pre-defined pre-compiled FREEIMAGE_LIB
Output files are saved in Dist / x32 in
头文件的宏定义编译细节如下:
#if defined(FREEIMAGE_LIB)
#define DLL_API
#define DLL_CALLCONV
#else
#if defined(_WIN32) || defined(__WIN32__)
#define DLL_CALLCONV __stdcall
// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the FREEIMAGE_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// DLL_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef FREEIMAGE_EXPORTS
#define DLL_API __declspec(dllexport)
#else
#define DLL_API __declspec(dllimport)
#endif // FREEIMAGE_EXPORTS
#else
// try the gcc visibility support (see http://gcc.gnu.org/wiki/Visibility)
#if defined(__GNUC__) && ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#ifndef GCC_HASCLASSVISIBILITY
#define GCC_HASCLASSVISIBILITY
#endif
#endif // __GNUC__
#define DLL_CALLCONV
#if defined(GCC_HASCLASSVISIBILITY)
#define DLL_API __attribute__ ((visibility("default")))
#else
#define DLL_API
#endif
#endif // WIN32 / !WIN32
#endif // FREEIMAGE_LIB
problem analysis
Item file line severity codes prohibit the display state
error LNK2019 unresolved external symbol __imp__FreeImage_ConvertToGreyscale @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE ? AU? $ pair @ V? $ SharedPtr @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ cited OgreMain F 2 @@ Z) in: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
error LNK2019 unresolved external symbol __imp__FreeImage_Initialise @ 4, the function symbol "public: static void __cdecl Ogre :: It cited OgreMain F FreeImageCodec :: startup (void) "(startup @ FreeImageCodec @ Ogre @@ SAXXZ?) in: \ AI \ mogre \. build\vs2013\OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_DeInitialise @ 0, the function symbol "public: static void __cdecl Ogre :: FreeImageCodec :: shutdown (void)" is referenced (shutdown @ FreeImageCodec @ Ogre @@ SAXXZ ?) In OgreMain F: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
error LNK2019 unresolved external symbol __imp__FreeImage_GetVersion @ 0, the symbol in the function? "public: static void __cdecl Ogre :: FreeImageCodec :: startup (void)" (startup It cited OgreMain F @ FreeImageCodec @ Ogre @@ SAXXZ ) in: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
error LNK2019 unresolved external symbol __imp__FreeImage_GetCopyrightMessage @ 0, the function symbol "public: static void __cdecl It cited OgreMain F Ogre :: FreeImageCodec :: startup ( void) "(startup @ FreeImageCodec @ Ogre @@ SAXXZ?) in: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_SetOutputMessage @ 4, the function symbol "public: static void __cdecl Ogre :: FreeImageCodec :: startup (void)" is referenced OgreMain F (startup @ FreeImageCodec @ Ogre @@ SAXXZ?) In: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
error LNK2019 unresolved external symbol __imp__FreeImage_AllocateT @ 28, the symbol in the function "private: struct FIBITMAP * __thiscall Ogre :: FreeImageCodec :: encodeBitmap (class Ogre :: SharedPtr <class Ogre :: MemoryDataStream> &, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData> &) const "(? encodeBitmap @ FreeImageCodec @ Ogre @@ ABEPAUFIBITMAP @@ AAV? $ SharedPtr @ VMemoryDataStream @ Ogre @@ @ 2 @ AAV cited OgreMain F $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ Z) in:? \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_Unload @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_Save @ 16, in the function the symbol "public: virtual void __thiscall Ogre :: FreeImageCodec :: encodeToFile (class Ogre :: SharedPtr <class Ogre :: MemoryDataStream> &, class std :: basic_string < char, struct std :: char_traits <char>, class std :: allocator <char>> const &, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData> &) const "(? encodeToFile @ FreeImageCodec @ Ogre @ @UBEXAAV? $ SharedPtr @ VMemoryDataStream @ Ogre @@@ 2 @ ABV? $ basic_string @ DU? $ char_traits @ D @ std @@ V? $ allocator @ D @ 2 @@ std @@ AAV? $ SharedPtr @ VCodecData @ Codec referenced OgreMain F @Ogre @@@ 2 @@ Z) in: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_OpenMemory @ 8, in the function the symbol "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_CloseMemory @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_LoadFromMemory @ 12, in the function the symbol "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_SaveToMemory @ 16, in the function the symbol "public: virtual class Ogre :: SharedPtr <class Ogre :: DataStream> __thiscall Ogre :: FreeImageCodec :: encode (class Ogre :: SharedPtr <class Ogre: : MemoryDataStream> &, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData> &) const "(encode @ FreeImageCodec @ Ogre @@ UBE AV $ SharedPtr @ VDataStream @ Ogre @@@ 2 @ AAV???? cited OgreMain F $ SharedPtr @ VMemoryDataStream @ Ogre @@@ 2 @ AAV $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ Z) in:? \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_AcquireMemory @ 12, in the function the symbol "public: virtual class Ogre :: SharedPtr <class Ogre :: DataStream> __thiscall Ogre :: FreeImageCodec :: encode (class Ogre :: SharedPtr <class Ogre: : MemoryDataStream> &, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData> &) const "(encode @ FreeImageCodec @ Ogre @@ UBE AV $ SharedPtr @ VDataStream @ Ogre @@@ 2 @ AAV???? It cited OgreMain F $ SharedPtr @ VMemoryDataStream @ Ogre @@@ 2 @ AAV $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ Z) in:? \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
error LNK2019 unresolved external symbol __imp__FreeImage_GetFIFCount @ 0, the symbol function: the referenced OgreMain F "public static void __cdecl Ogre :: FreeImageCodec :: startup (void)" (startup @ FreeImageCodec @ Ogre @@ SAXXZ?) in: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Cited OgreMain error LNK2019 unresolved external symbol __imp__FreeImage_GetFormatFromFIF @ 4, the symbol in the function "void __cdecl Ogre :: FreeImageLoadErrorHandler (enum FREE_IMAGE_FORMAT, char const *)" (? FreeImageLoadErrorHandler @ Ogre @@ YAXW4FREE_IMAGE_FORMAT @@ PBD @ Z) in F: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
error LNK2019 unresolved external symbol __imp__FreeImage_GetFIFExtensionList @ 4, the function symbol "public: static void __cdecl Ogre :: FreeImageCodec :: startup (void)" ( It cited OgreMain F startup @ FreeImageCodec @ Ogre @@ SAXXZ) in:? \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_FIFSupportsExportBPP @ 8, the symbol in the function "private: struct FIBITMAP * __thiscall Ogre :: FreeImageCodec :: encodeBitmap (class Ogre :: SharedPtr <class Ogre :: MemoryDataStream> &, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData> &) const "(? encodeBitmap @ FreeImageCodec @ Ogre @@ ABEPAUFIBITMAP @@ AAV? $ SharedPtr @ VMemoryDataStream @ Ogre @@@ 2 @ AAV? $ SharedPtr @ VCodecData @ Codec @ Ogre @ referenced OgreMain F @@ 2 @@ Z) in: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_FIFSupportsExportType @ 8, the symbol in the function "private: struct FIBITMAP * __thiscall Ogre :: FreeImageCodec :: encodeBitmap (class Ogre :: SharedPtr <class Ogre :: MemoryDataStream> &, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData> &) const "(? encodeBitmap @ FreeImageCodec @ Ogre @@ ABEPAUFIBITMAP @@ AAV? $ SharedPtr @ VMemoryDataStream @ Ogre @@@ 2 @ AAV? $ SharedPtr @ VCodecData @ Codec @ Ogre @ referenced OgreMain F @@ 2 @@ Z) in: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_GetFileTypeFromMemory @ 8, in the function the symbol "public: virtual class std :: basic_string <char, struct std :: char_traits <char>, class std :: allocator <char>> __thiscall Ogre :: FreeImageCodec :: magicNumberToFileExt (char const *, unsigned int) const "(? magicNumberToFileExt @ FreeImageCodec @ Ogre @@ UBE? AV? $ basic_string @ DU? $ char_traits @ D @ std @@ V? $ allocator @ D @ 2 @@ std @@ PBDI @ Z cited OgreMain F) in: \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_GetImageType @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_GetBits @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_GetBPP @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_GetWidth @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_GetHeight @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_GetPitch @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_GetColorType @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_GetGreenMask @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_IsTransparent @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_ConvertTo24Bits @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
Error LNK2019 unresolved external symbol __imp__FreeImage_ConvertTo32Bits @ 4, the symbol in the function "public: virtual struct std :: pair <class Ogre :: SharedPtr <class Ogre :: MemoryDataStream>, class Ogre :: SharedPtr <class Ogre :: Codec :: CodecData>> __thiscall Ogre :: FreeImageCodec :: decode (class Ogre :: SharedPtr <class Ogre :: DataStream> &) const "(? decode @ FreeImageCodec @ Ogre @@ UBE? AU? $ pair @ V? $ SharedPtr cited OgreMain F @ VMemoryDataStream @ Ogre @@@ Ogre @@ V? $ SharedPtr @ VCodecData @ Codec @ Ogre @@@ 2 @@ std @@ AAV? $ SharedPtr @ VDataStream @ Ogre @@@ 2 @@ Z) in : \ AI \ mogre \ .build \ vs2013 \ OgreFreeImageCodec.obj 1
error LNK1120 31 Ge unresolved external command OgreMain F: \ AI \ mogre \ bin \ Debug \ x86 \ OgreMain_d.dll 1
Unresolved external symbol __imp__FreeImage_Initialise @ 4 Description
__imp__FreeImage_Initialise @ 4 is compiled as DLL function when the address, description of the function is not FreeImage.lib address
Call command to check the function declaration FreeImage.lib
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin>"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\dumpbin.exe" /SYMBOLS F:\AI\FreeImage\Win32\Debug\FreeImaged.lib > D:FreeImageLib.txt
Description of FreeImage.lib is compiled static library, static library function at the following address: __imp__FreeImage_Initialise, recompile the dynamic libraries, dynamic link libraries to solve the problem