ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] Problem including external libraries


From: Ricardo Ungerer
Subject: [Ltib] Problem including external libraries
Date: Thu, 15 Dec 2011 10:00:03 -0200

Hello list,

I'm trying to build a very very simple c program:

========= main.cpp
#include <stdio.h>
#include <boost/filesystem.hpp>

int main( int argc, char* argv[] )
{
    printf("Hello world \n" );
    return 0;
}
=========


with this makefile:

========== Makefile
CROSS=arm-none-linux-gnueabi-

all: link_test
link_test: main.cpp
        $(CROSS)g++ -lboost_filesystem -o link_test main.cpp
===========

the error reported i got is:

$ make ARCH=arm CROSS_COMPILER=arm-none-linux-gnueabi- KERNELDIR=../linux
main.cpp:6:32: error: boost/filesystem.hpp: No such file or directory

My objetive is to successfully include and link the link_test with
boost_filesystem. I included the boost package with "ltib
--configure"->package list->boost.

What i'm not catching here?
And how would i do the same with cmake?

-- 
Ricardo Ungerer Garcia Simoes



reply via email to

[Prev in Thread] Current Thread [Next in Thread]