c++ - File Compiles Fine in One Project But Not in Another -



c++ - File Compiles Fine in One Project But Not in Another -

i have big class classa defined in code::blocks project projecta. projecta compiles fine, when seek utilize classa in different project projectb, start getting errors like

c:\projecta\classa.cpp|17|error: boost/foreach.hpp: no such file or directory| c:\projecta\classa.cpp|649|error: 'strlen' not declared in scope|

also 1 of these every function in cstring

c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\cstring|76|error: '::memchr' has not been declared|

i added both classa.h , classa.cpp projectb , added folder projecta directories searched in projectb.

i saw this question addressing similar error, don't utilize c, weird projects start trying compile in c. however, don't want dismiss possibility, know how check whether project compiling in c or c++ in code::blocks.

using files multiple projects has been working me until today, i'm @ total loss wrong. in advance answers!

it sounds projectb has different include paths, ensure has equivalent projecta. setup boost in external directory.

c++ codeblocks

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -