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

_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to