Hi,
I’m trying to make a static link of my ROOT GUI. I
- downloaded the source (5.32.rc2), and performed the following steps in Cygwin
2 ./configure win32 - make
- make static
libroot.a is created, but when linking roota, a lot of the following link errors occur. Similar errors occur, when linking my application to libroot.a in Visual C++ 9. It guess, it has something to do with the /MD compiler switch, but I really can’t figure it out, how to solve this problem. Any help is appreciated.
Jürgen
libRoot.a(TRootBrowserLite.o) : error LNK2019: Verweis auf nicht aufgelöstes ext
ernes Symbol “”__declspec(dllimport) char const * const gHelpRemote" (_imp?gHe
lpRemote@@3QBDB)" in Funktion ““public: virtual bool _thiscall TRootBrowserLite
::ProcessMessage(long,long,long)" (?ProcessMessage@TRootBrowserLite@@UAE_NJJJ@Z)
".
libRoot.a(TRootBrowser.o) : error LNK2001: Nicht aufgelöstes externes Symbol “”
_declspec(dllimport) char const * const gHelpRemote” (_imp?gHelpRemote@@3QBDB)
”.
libRoot.a(TRootBrowserLite.o) : error LNK2019: Verweis auf nicht aufgelöstes ext
ernes Symbol “”__declspec(dllimport) char const * const gHelpBrowserLite" (__imp
_?gHelpBrowserLite@@3QBDB)" in Funktion ““public: virtual bool __thiscall TRootB
rowserLite::ProcessMessage(long,long,long)” (?ProcessMessage@TRootBrowserLite@@U
AE_NJJJ@Z)”.
libRoot.a(TGTextEditor.o) : error LNK2019: Verweis auf nicht aufgelöstes externe
s Symbol “”__declspec(dllimport) char const * const gHelpTextEditor" (_imp?gHe
lpTextEditor@@3QBDB)" in Funktion ““public: virtual bool __thiscall TGTextEditor
::ProcessMessage(long,long,long)” (?ProcessMessage@TGTextEditor@@UAE_NJJJ@Z)”.
libRoot.a(TNetFile.o) : error LNK2019: Verweis auf nicht aufgelöstes externes Sy
mbol “”__declspec(dllimport) char const * * gRootdErrStr" (_imp?gRootdErrStr@@
3PAPBDA)" in Funktion ““protected: void __thiscall TNetFile::PrintError(char con
st *,int)” (?PrintError@TNetFile@@IAEXPBDH@Z)”.
libRoot.a(TSocket.o) : error LNK2001: Nicht aufgelöstes externes Symbol “”__decl
spec(dllimport) char const * * gRootdErrStr" (_imp?gRootdErrStr@@3PAPBDA)".
libRoot.a(TUDPSocket.o) : error LNK2001: Nicht aufgelöstes externes Symbol “”__d
eclspec(dllimport) char const * * gRootdErrStr" (_imp?gRootdErrStr@@3PAPBDA)".
…
libRoot.a(Win32Splash.o) : error LNK2019: Verweis auf nicht aufgelöstes externes
Symbol “imp__RealizePalette@4" in Funktion ""void cdecl DisplayGraphic(stru
ct HWND *,struct HDC *)” (?DisplayGraphic@@YAXPAUHWND__@@PAUHDC__@@@Z)".
libRoot.a(Win32Splash.o) : error LNK2019: Verweis auf nicht aufgelöstes externes
Symbol “imp__SelectPalette@12" in Funktion ""void cdecl DisplayGraphic(stru
ct HWND *,struct HDC *)” (?DisplayGraphic@@YAXPAUHWND__@@PAUHDC__@@@Z)".
libRoot.a(Win32Splash.o) : error LNK2019: Verweis auf nicht aufgelöstes externes
Symbol “__imp__UnregisterClassA@8” in Funktion ““void __cdecl DestroySplashScre
en(void)” (?DestroySplashScreen@@YAXXZ)”.
libRoot.a(Win32Splash.o) : error LNK2019: Verweis auf nicht aufgelöstes externes
Symbol “__imp__DestroyWindow@4” in Funktion ““void __cdecl DestroySplashScreen(
void)” (?DestroySplashScreen@@YAXXZ)”.
libRoot.a(Win32Splash.o) : error LNK2019: Verweis auf nicht aufgelöstes externes
Symbol “imp__CreateWindowExA@48" in Funktion "“int cdecl CreateSplashScreen
(struct HWND *)” (?CreateSplashScreen@@YAHPAUHWND@@@Z)”.
libRoot.a(Win32Splash.o) : error LNK2019: Verweis auf nicht aufgelöstes externes
Symbol “imp__DefWindowProcA@16" in Funktion "“long stdcall SplashWndProc(st
ruct HWND *,unsigned int,unsigned int,long)” (?SplashWndProc@@YGJPAUHWND@@II
J@Z)”.