Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7061757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:30:46+00:00 2026-05-28T04:30:46+00:00

I have a large class ClassA that I defined in a Code::Blocks Project ProjectA.

  • 0

I have a large class ClassA that I defined in a Code::Blocks Project ProjectA. ProjectA compiles fine, but when I try to use ClassA in a different project ProjectB, I 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' was not declared in this scope|

also one of these for 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 and ClassA.cpp to ProjectB and added the folder for ProjectA to the directories searched in ProjectB.

I saw this question addressing a similar error, but I don’t use C, so it would be weird for my projects to suddenly start trying to compile in C. However, I don’t want to completely dismiss the possibility, so I would also like to know how to check whether a project is compiling in C or C++ in Code::Blocks.

Using files from multiple projects has been working for me up until today, so I’m at a total loss for what could be wrong. Thanks in advance for your answers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:30:46+00:00Added an answer on May 28, 2026 at 4:30 am

    It sounds like ProjectB has different include paths, ensure that it has the equivalent to ProjectA. Usually you would setup boost in an external directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If you have a large class that executes after output(headers/text) is already sent, will
I have a class that parses very large file (that can't fit in memory)
I have the below code that links and runs fine in 32bit mode -
I have some code that is crashing in a large system. However, the code
I have some code that has a dynamic-class system in C++ that has a
My code that I have is quite large and complicated so I won't waste
I have a large class, which I have divided into several different class extension
I have large batches of XHTML files that are manually updated. During the review
I'm developing a website in PHP and I have large JS files that I
I'm writing code that uses a large matrix where the elements are a user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.