Osman,
This doesn't really sound like a VXL problem. But I can suggest the
following in trying to debug it:
Note that the errors are looking for __clrcall definitions. I would
guess that this means your windows forms program is being built to a MS
dotNET CLR target. It appears to be expecting VXL also to be a MS dotNET
CLR library, and not the native machine targeted library that VXL has
likely been built as. If this is true, you could try to build VXL to a
MS dotNET CLR target - I doubt this will be easy - it is not one of our
supported targets.
Alternatively you can figure out how to tell the compiler that VXL
should be treated as a native library. If you need anymore help with
this then I'd suggest asking forum that knows about windows forms,
dotNet, etc.
Ian.
On 10/07/2011 04:17, oguz ahsen wrote:
> Dear all,
>
> I am using vxl library (version 1.12.0) without having a problem in a
> "Win32 Console Application" in Visual Studio 2008. I am using it in a
> 32bit Windows XP computer.
>
> Recently I decided to build a GUI application and created a "Windows
> Forms Application". However, now I am having these "unresolved external
> symbol errors". I do not understand what is wrong here. I am using the
> exact same computer, Visual Studio program, vxl libraries etc. and I am
> including and linking the exact same libraries. Yet, if I have a "Win32
> Console Application" everything works perfectly well but in "Windows
> Forms Application" it does not work. I will really appreciate if you can
> help me on how to solve this problem. Here is the code I am using and
> the errors I get:
>
> My code includes only these two lines about vxl library:
>
> #include "vil/vil_image_view.h"
> ...
> ....
> vil_image_view<vxl_uint_16> image_stack(1,1,1,1);
>
>
> I am getting the following errors:
>
> Error10error LNK2001: unresolved external symbol "private: static void
> __clrcall vil_smart_ptr<class vil_memory_chunk>::unref(class
> vil_memory_chunk *)"
> (?unref@...
> Error16error LNK2001: unresolved external symbol "public: __clrcall
> vil_image_view<unsigned short>::vil_image_view<unsigned short>(unsigned
> int,unsigned int,unsigned int,unsigned int)"
> (??0?$vil_image_view@...
> Error11error LNK2001: unresolved external symbol "public: virtual bool
> __clrcall vil_image_view<unsigned short>::is_class(class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > const &)const "
> (?is_class@...
> Error12error LNK2001: unresolved external symbol "public: virtual class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > __clrcall vil_image_view<unsigned
> short>::is_a(void)const "
> (?is_a@...
> Error13error LNK2001: unresolved external symbol "public: virtual void
> __clrcall vil_image_view<unsigned short>::print(class
> std::basic_ostream<char,struct std::char_traits<char> > &)const "
> (?print@...
> Error14error LNK2001: unresolved external symbol "public: virtual void
> __clrcall vil_image_view<unsigned short>::set_size(unsigned int,unsigned
> int)" (?set_size@...
> Error15error LNK2001: unresolved external symbol "public: virtual void
> __clrcall vil_image_view<unsigned short>::set_size(unsigned int,unsigned
> int,unsigned int)"
> (?set_size@...
> Error17fatal error LNK1120: 7 unresolved
> externals..\..\..\bin\form_stuff.exe
>
> Thanks a lot in advance.
> Osman
>
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
>
>
>
> _______________________________________________
> Vxl-users mailing list
> Vxl-users@...
> https://lists.sourceforge.net/lists/listinfo/vxl-users
|