boost - C++ Permission Denied Error -
i'm new c++, i've been coding in java few years. week ago tried getting boost library work codeblocks, , have run error after error after error. i've managed fix of them 1 driving me wall. code returns 2 errors when compiled:
ld.exe||cannot find c:\boost_1_60_0\stage\lib: permission denied|
||error: ld returned 1 exit status|
i cannot figure out how fix this, i've been searching online days. i've been able figure out, permission denied error due (as error suggests) lack of permission access directory, none of fixes i've found online have worked.
here code, although don't think code related error.
#include "complex.h" #include <cmath> using namespace csis3700; #define boost_test_module complextests #define boost_test_dyn_link #include <boost/test/unit_test.hpp> const double tol = 0.01; boost_auto_test_case(zero_arg_constructor_should_not_crash) { complex c; }
the complex class class simulates complex numbers, right empty constructor.
build settings:
your search directories not include folder. double check search directories tab populated "c:\boost_1_60_0\stage\lib" or if using environment variable, set , linked here.
additionally error because looking boost.lib file , not directory. removing current linker settings , moving under search directories->linker tab should resolve error.
Comments
Post a Comment