boost - Error in CodeBlocks C++ program and how to set default main class -


i have included boost library in codeblocks c++ project.

now, in file

 boost/function.hpp 

there include statement

#include <boost/preprocessor/iterate.hpp> 

however error in codeblocks when try , compile:

/home/arvind/documents/workspace/browser/boost/function.hpp|15|fatal error:      boost/preprocessor/iterate.hpp: no such file or directory| 

what doing wrong here? have included boost library is.

also, cannot find screen/option set main class (which execute). how do this?(i new codeblocks hence question).

your boost includes seem in non-standard/system directory : /home/arvind/documents/workspace/browser, must tell compiler there (gcc -i command-line switch).

go project->build options->search directories->compiler , add directory boost includes are. don't have codeblocks install right here from here.

if can, recommand installing boost on system once , instead of copying files in codeblocks workspace.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -