[Insight-users] (Please Help) fatal error C1083: Cannot open include file: 'vnl_lbfgs.h'
Luis Ibanez
luis.ibanez at kitware.com
Fri Mar 26 12:12:27 EDT 2010
Hi Wei,
This header file must be included in your code as:
#include "vnl/algo/vnl_lbfgbs.h"
not as
#include "vnl_lbfgbs.h"
Regards,
Luis
-----------------------------------------
On Thu, Mar 25, 2010 at 8:08 PM, Wei Liu <smartnose at gmail.com> wrote:
> Hi All:
>
>
> I'm new to ITK, and I'm writing a simple program using one of the minimizing
> procedure in vnl.
>
> I configured my cmakelist as follows, and successfully compile the 'Hello
> World' example, but when I try to compile my optimizer, my compiler (Visual
> Studio 2008) couldn't find 'vnl_lbfgs.h' . It is surely installed, and I
> might get around it by manually setting the path in my Visual Studio, but is
> there any better way that I can fix it?
>
> My cmakelist files is like:
>
> cmake_minimum_required(VERSION 2.8)
>
> PROJECT(bond)
>
> FIND_PACKAGE(ITK REQUIRED)
>
> INCLUDE(${ITK_USE_FILE})
>
> INCLUDE_DIRECTORIES(
> ${VXLCORE_INCLUDE_DIR}
> ${GEL_INCLUDE_DIR}
> ${VXL_VNL_INCLUDE_DIR}
> )
>
>
> ADD_EXECUTABLE(bond bond.cpp mex_optimizer.cpp)
> TARGET_LINK_LIBRARIES(bond ITKCommon)
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list