Promotion in Netbeans 7.1.1

Trying to run the following:

        #include<iostream>
        #include<boost/filesystem/operations.hpp>

        namespace bfs=boost::filesystem;
        int main()
        {
        bfs::path p("second.cpp");
        if(bfs::exists(p))
        std::cout<<p.leaf()<<std::endl;
        }

I got some errors in cygwin, so I decided to try netbeans and used the following as a guide. I have added all the links and the following for the file system Project -> properties -> Linker ->Libraries -> Add option -> Other -> -lfile_systemas indicated here . I did a separate test with help #include<boost/any.hpp>, so I currently have no doubt that my boost is not set to match.

It seems strange to me that this is "file_system", so I also tried the "file system", but to no avail.

When I hold Ctrland click on #include<boost/filesystem/operations.hpp>, my netbeans bring my file operations.hppso that it looks normal (correctly attached internally so that it can "see" what I want it to see).


boost : 1 - , Visual Studio, . . , .

2 - MinGW. , .

( , ), boost.

Horay!

+5
3

Boost cygwin

enter image description here

, , . : , .

, , T:\ , , .

: Boost-cyg-Test

enter image description here

enter image description here

main.cpp
. , , .

, , .
. , :

#include <iostream>
#include <boost/filesystem.hpp>
using namespace std;
using namespace boost::filesystem;

int main()
  {
    path p("second.cpp");
      if (exists(p)) { std::cout<<p.leaf()<<std::endl; }
  }

, "boost" .

goto Tools โ†’

++ .

enter image description here

, Netbeans .

enter image description here

enter image description here

, OK, , . ( ++).

"boost".

enter image description here

Boost *.a
Boost shared option, :

enter image description here

. 2 .

libboost_filesystem-gcc45-mt-d-1_53.dll.a
libboost_system-gcc45-mt-d-1_53.dll.a

, .
, .a T:\cygwin\lib\boost.

.dll .
.dll ?:\cygwin\bin.
, .

enter image description here

.
, Boost cygwin

enter image description here

enter image description here

, .a.
Add Library T:\cygwin\lib\boost

libboost_filesystem-gcc45-mt-d-1_53.dll.a
libboost_system-gcc45-mt-d-1_53.dll.a

, netbeans :

boost_filesystem-gcc45-mt-d-1_53.dll
boost_system-gcc45-mt-d-1_53.dll

<411 >

. , .dll. .a.

main.cpp. .

enter image description here

, , .
, make , .

:

enter image description here

Cygwin

, boost .

boost_1_53_0.zip

?:\cygwin.
boost_1_53_0

enter image description here

zip .
:

enter image description here

cmd, cd boost_1_53_0.
, PATH, cygwin home bin.
cmd-.

SET PATH=T:\cygwin;T:\cygwin\bin 

.

PATH

enter image description here

bootstrap.bat

enter image description here

.\b2 --build-dir=T:\boost-cyg toolset=gcc variant=debug link=shared runtime-link=shared

.
, .

: gcc not found
( ) ?:\cygwin\bin, : ( ).
i686-pc-cygwin-gcc-4.5.3.exe gcc.exe

i686-pc-cygwin-g++-4.exe g++.exe

, .

+8

, ? Windows, , Jesse Good , .

, -lboost_filesystem lfile_system.

, , ( unix libboost_filesystem.so), "lib" ".so" ".a" ( Windows).

0

if your forced installation is correct, and you are sure of it, then Unable to resolve identifiertry Promote code โ†’ Reprocessing project from the project context menu. He is trying to restore a broken code model, repairing a project from scratch. if this does not work, try closing the IDE and removing the code model cache.

ps do you have compilation errors?

0
source

All Articles