E
E
enchikiben2014-01-02 17:11:00
C++ / C#
enchikiben, 2014-01-02 17:11:00

How to work in netbeans with boost on windows?

Good evening, I'm trying to figure out how to work with boost in netbeans and it doesn't work. I downloaded boost 1.55, put it in C:\boost_1_55_0, then configured gcc as written on the site https://netbeans.org/community/releases/60/cpp-set... (gcc 4.8.2), and realized that the boost I need to compile, I go into the boost folder and type bootstrap.bat gcc, and in response it gives a lot of errors:


c:\boost_1_55_0>bootstrap.bat gcc
Building Boost.Build engine
filent.c:46:20: fatal error: direct.h: No such file or directory
#include
^
compilation terminated.
jam.c: In function 'main':
jam.c:179:22: error: 'environ' undeclared (first use in this function)
# define use_environ environ
^
jam.c:439:37: note: in expansion of macro 'use_environ'
var_defines( root_module(), use_environ, 1 );
^
jam.c:179:22: note: each undeclared identifier is reported only once for each fu
nction it appears in
# define use_environ environ
^
jam.c:439:37: note: in expansion of macro 'use_environ'
var_defines( root_module(), use_environ, 1 );
^
builtins.c:41:0: warning: "WIFEXITED" redefined [enabled by default]
# define WIFEXITED(w) (((w) & 0XFFFFFF00) == 0)
^
In file included from /usr/include/cygwin/ stdlib.h:14:0,
from /usr/include/stdlib.h:25,
from jam.h:41,
from builtins.c:7:
/usr/include/cygwin/wait.h:34:0: note : this is the location of the previous definition #define
WIFEXITED
(w) ((__wait_status_to_int(w) & 0xff) == 0)
^
builtins.c:42:0: warning: "WEXITSTATUS" redefined [enabled by default]
# define WEXITSTATUS(w)(w)
^
In file included from /usr/include/cygwin/stdlib.h:14:0,
from / usr/include/stdlib.h:25,
from jam.h:41,
from builtins.c:7:
/usr/include/cygwin/wait.h:39:0: note: this is the location of the previous
definition
#define WEXITSTATUS(w) ((__wait_status_to_int(w) >> 8) & 0xff)
^
Failed to build Boost.Build engine.
Please consult bootstrap.log for furter diagnostics.
You can try to obtain a prebuilt binary from
sf.net/project/showfiles.php?group_id=7586&package...
Also, you can file an issue atsvn.boost.org
Please attach bootstrap.log in that case.
c:\boost_1_55_0>

Help please, what should I do? What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
@
@ntkt, 2014-01-03
_

1) Why do you immediately collect boost from raw materials?
Take his precompiled mingw binaries and headers for starters, put together a couple of examples. Where to get them from - the output of the fallen script hints at you.
Compiling boost without understanding why it is needed is just a waste of time.
2) Under Windows, boost is assembled relatively seamlessly only under Visual Studio.
If you are using mingw with no experience, be prepared for special effects and tambourine dancing. And netbeans has nothing to do with it, in general.
If you want to build something serious under mingw, first understand how the toolchain works in general - what environment variables need to be set, where to put what, what needs to be done so that mingw32-make always works, and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question