windows - C++ Boost Compile Error with Simple_ls.cpp - Undefinded Referece to boost::filesystem::path::filename -


I am "new" like C / C ++ I spent several hours setting up my desk boost and with MinGW Beating in the desk in an attempt to work on your Windows 8 64 bit computer. In my quest for answers, I found it in Open_distro_window.bat after clicking twice, the errors were changed to something different. Using, I found these errors:

  & gt; G ++ simple_ls.cpp -o simple_ls.exe C: \ users \ joe \ appdata \ local \ temp \ ccQLpVCt.o: simple_ls.cpp :( .text + 0x1ba): `boost :: filesystem :: path :: Undefined reference file name () const 'C: \ users \ joe \ appdata \ local \ temp \ ccQLpVCt.o: simple_ls.cpp :(. Text + 0x23a): `promotion: filesystem :: path :: file name () Undefined reference to const: 'C: \ users \ joe \ appdata \ local \ temp \ ccQLpVCt.o: simple_ls.cpp :(. + 0x294 text): `promotion: filesystem :: path :: filename () const' C : Undefined reference user for \ 'user \ who \ appadda \ local \ temp \ ccQLpVCt.o: simple_ls.cpp :(. + 0x4bf text): ` Ref: :: Filesystem :: Path :: File Name () const 'c: / mingw-boost / mingw / bin / etc / lib / gcc / x86_64-w64-mingw32 / 4.8.2 /../../ ./x86_64-w64-mingw32 / bin / ld.exe: c: \ user \ joe \ appData \ local \ temp \ ccQLpVCt.o: `` dd reloc address 0x0 '.data' collect2.exe: error in the section: ld 1 returned the exit status  

I even tried the sample before, and I was still in more errors, but one thing at a time. Am I missing something, is that the setup boost for that minu is compiled with bad, or is it Windows 8? . Use G ++ with

-l library_filename option. If your boost is not in the library path of the library system, then use the -L BOOST_LIB_DIR option, look at the compiler in the directory specified for the library file.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -