[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    [Insight-users] Re: about FLTK
From:       Luis Ibanez <luis.ibanez () kitware ! com>
Date:       2007-09-25 12:21:13
Message-ID: 46F8FD39.7030701 () kitware ! com
[Download RAW message or body]



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@Fl_Gl_Window@@EAEXXZ)
> interface.obj : error LNK2001: unresolved external symbol "public:
> virtual void __thiscall Fl_Gl_Window::hide(void)"
> (?hide@Fl_Gl_Window@@UAEXXZ)
> interface.obj : error LNK2001: unresolved external symbol "public:
> virtual void __thiscall Fl_Gl_Window::show(void)"
> (?show@Fl_Gl_Window@@UAEXXZ)
> interface.obj : error LNK2001: unresolved external symbol "public:
> virtual void __thiscall Fl_Gl_Window::flush(void)"
> (?flush@Fl_Gl_Window@@UAEXXZ)
> interface.obj : error LNK2001: unresolved external symbol "public:
> virtual void __thiscall Fl_Gl_Window::resize(int,int,int,int)"
> (?resize@Fl_Gl_Window@@UAEXHHHH@Z)
> interface.obj : error LNK2001: unresolved external symbol "private:
> void __thiscall Fl_Gl_Window::init(void)" (?init@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@XZ)
> Debug/key_frame1.exe : fatal error LNK1120: 7 unresolved externals
> Error executing link.exe.
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic