-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Same problem, however, now I'm certain it's just not linking against the filesystem libraries in boost. I'm using EasyEclipse 3.3 CDT, and replaced the MinGW installation with the one from http://www.nuwen.net/, however, it still throws this error whenever I start to use the boost::filesystem API: src\AppLayer\DirectoryTree.o:c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.2.1-dw2/../../../../include/boost/filesystem/operations.hpp:289: undefined reference to boost::filesystem::detail::status_api(std::string const&, unsigned int&)' src\AppLayer\DirectoryTree.o:c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.2.1-dw2/../../../../include/boost/filesystem/operations.hpp:279: undefined reference to boost::filesystem::detail::status_api(std::string const&, unsigned int&)' src\AppLayer\DirectoryTree.o:c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.2.1-dw2/../../../../include/boost/filesystem/operations.hpp:503: undefined reference to boost::filesystem::detail::get_current_path_api(std::string&)' I'm fairly certain that I don't understand what's going on. The library files for the filesystem API are right in the lib\ directory, right where they should be. I think it might be that Eclipse isn't doing something correctly, however, I looked through the library paths in Eclipse and it looks to me as if everything is in order. Any help would be awesome, thanks in advance for any help you can offer! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHRTUMFjX73bUcQCERApWwAJ9D6auob+xmK9JVRr3rNVRgqPuf2wCghMh7 mxij+iLprZBZq6DmQkmflFw= =lvrF -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Miller wrote:
Same problem, however, now I'm certain it's just not linking against the filesystem libraries in boost. I'm using EasyEclipse 3.3 CDT, and replaced the MinGW installation with the one from http://www.nuwen.net/, however, it still throws this error whenever I start to use the boost::filesystem API:
src\AppLayer\DirectoryTree.o:c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.2.1-dw2/../../../../include/boost/filesystem/operations.hpp:289: undefined reference to boost::filesystem::detail::status_api(std::string const&, unsigned int&)' src\AppLayer\DirectoryTree.o:c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.2.1-dw2/../../../../include/boost/filesystem/operations.hpp:279: undefined reference to boost::filesystem::detail::status_api(std::string const&, unsigned int&)' src\AppLayer\DirectoryTree.o:c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.2.1-dw2/../../../../include/boost/filesystem/operations.hpp:503: undefined reference to boost::filesystem::detail::get_current_path_api(std::string&)'
I'm fairly certain that I don't understand what's going on. The library files for the filesystem API are right in the lib\ directory, right where they should be. I think it might be that Eclipse isn't doing something correctly, however, I looked through the library paths in Eclipse and it looks to me as if everything is in order.
Any help would be awesome, thanks in advance for any help you can offer!
Hey I fixed the problem. I found that the boost_filesystem.a file wasn't being recognized by the MinGW Linker because it didn't have the extension of .o Rather than try something stupid like renaming the file, I added that file to a list of "other objects" under the Eclipse CDT Linker configuration settings located here: Project Properties > C/C++ Build > Settings > MinGW C++ Linker > Miscellaneous > Other Objects Just documenting it for the list, and for my own purposes when I forget and have to setup on another platform :) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHRkmXFjX73bUcQCERAsLQAJ9JFqU98MIXEaTZDEu9c+NqNRjRcgCePQQC aG/YrO6AUhGClQmSuOIU4aA= =uDoU -----END PGP SIGNATURE-----
participants (1)
-
Chris Miller