[Insight-users] Re: about FLTK
Luis Ibanez
luis.ibanez at kitware.com
Tue Sep 25 08:21:13 EDT 2007
Hi Hui,
These errors indicate that you are mixing compilation modes
{Debug/Release/RelWithDebInfo/..} between the multiple
libraries that you are using.
You *MUST* compile all libraries using exactly the same
compilation mode.
What you may want to do at this point is:
1) Delete the binary directories that you have so far
(related to your application).
2) Choose a compilation mode {Debug/Release} and then
3) Build every one of your libraries using that *SAME*
compilation mode.
Please note that recent versions of FLTK (1.1.6 and later) do have a
CMakeLists.txt file. Therefore you can configure them using CMake and
in this way, when you combine multiple libraries, you have better
chances of producing executables with consistent compilation modes.
Regards,
Luis
----------------
Hui Lou wrote:
> Hi Luis,
>
> I saw your reply to some similar linking errors on the webpage
> http://public.kitware.com/pipermail/insight-users/2003-January/002349.html
> My errors are as follows. I would really appreciate it if you could
> help me about this. I have tried for a long time, but still could not
> figure out the problem. Thanks in advance.
>
> Sincerely,
>
> Hui Lou
>
>
> LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other
> libs; use /NODEFAULTLIB:library
> interface.obj : error LNK2001: unresolved external symbol "private:
> virtual void __thiscall Fl_Gl_Window::draw_overlay(void)"
> (?draw_overlay at Fl_Gl_Window@@EAEXXZ)
> interface.obj : error LNK2001: unresolved external symbol "public:
> virtual void __thiscall Fl_Gl_Window::hide(void)"
> (?hide at Fl_Gl_Window@@UAEXXZ)
> interface.obj : error LNK2001: unresolved external symbol "public:
> virtual void __thiscall Fl_Gl_Window::show(void)"
> (?show at Fl_Gl_Window@@UAEXXZ)
> interface.obj : error LNK2001: unresolved external symbol "public:
> virtual void __thiscall Fl_Gl_Window::flush(void)"
> (?flush at Fl_Gl_Window@@UAEXXZ)
> interface.obj : error LNK2001: unresolved external symbol "public:
> virtual void __thiscall Fl_Gl_Window::resize(int,int,int,int)"
> (?resize at Fl_Gl_Window@@UAEXHHHH at Z)
> interface.obj : error LNK2001: unresolved external symbol "private:
> void __thiscall Fl_Gl_Window::init(void)" (?init at Fl_Gl_Window@@AAEXXZ)
> interface.obj : error LNK2001: unresolved external symbol "public:
> virtual __thiscall Fl_Gl_Window::~Fl_Gl_Window(void)"
> (??1Fl_Gl_Window@@UAE at XZ)
> Debug/key_frame1.exe : fatal error LNK1120: 7 unresolved externals
> Error executing link.exe.
>
More information about the Insight-users
mailing list