Home > Back-end >  BCB the boost library statement
BCB the boost library statement

Time:09-24

I installed the boost in XE10.1 wrote a small program, test a safequeue template header file, declare several boost components, running is good, do not need to add any boost library paths include, just add # include "safequeue. H" which can be used,
 # include & lt; Mutex> 
# include & lt; Queue>
# include & lt; Condition_variable & gt;
# include & lt; Memory>
# include & lt; Atomic>

Then I copy the header file into an existing project never call boost (there), but there were revealed:
[bcc32 Error] safequeue. H (4) : E2209 Unable to open include file 'mutex'
[bcc32 Error] functional (813) : E2238 Multiple declaration for 'operator hash : () (const string & amp;) Const '
[bcc32 Error] functional (794) : E2344 Earlier declaration of 'operator hash : () (const string & amp;) Const '
[bcc32 Error] functional (838) : E2238 Multiple declaration for 'operator hash : () (const wstring & amp;) Const '
[bcc32 Error] functional (794) : E2344 Earlier declaration of 'operator hash : () (const wstring & amp;) Const '
[bcc32 Error] safequeue. H (6) : E2209 Unable to open include file 'condition_variable'
[bcc32 Error] safequeue. H (8) : E2209 Unable to open include file 'atomic'
[bcc32 Error] safequeue. H. (61) : E2316 'mutex' is not a member of 'STD'
[bcc32 Error] safequeue. H. (61) : E2040 Declaration terminated incorrectly
[bcc32 Error] safequeue. H. (62) : E2316 'condition_variable' is not a member of 'STD'
[bcc32 Error] safequeue. H. (62) : E2040 Declaration terminated incorrectly
[bcc32 Error] safequeue. H. (64) : E2316 'atomic' is not a member of 'STD'
.
I think the IDE is want to find a mutex in STD library boost components, such as
I am now add the path of the boost project is useless, I don't know why?
  • Related