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

  • Home
  • SEARCH
  • 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 814451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:31:27+00:00 2026-05-15T01:31:27+00:00

I wish to use the CImg library for image processing in my current project.

  • 0

I wish to use the CImg library for image processing in my current project. I am using Codegear C++ Builder 2009. I include CImg.h in the source file and put in the following code:

int rows =5;
int cols = 5;

CImg<double> img(rows,cols);

I get the following error:

[BCC32 Error] CImg.h(39159): E2285 Could not find a match for 'CImg<unsigned char>::move_to<t>(const CImg<unsigned char>)'

Does anyone know if there is a #define I should be using when building in Codegear C++ Builder 2009. Or is it simply not compatible?

  • 1 1 Answer
  • 2 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-15T01:31:28+00:00Added an answer on May 15, 2026 at 1:31 am

    A 40,000 line library that’s contained in a single header file? That seems like a bad idea…

    Anyway, unfortunately, C++Builder 2009 isn’t a very good C++ compiler, so it will often fail to handle otherwise legal C++ constructs. (It’s not unusual for C++ compilers to fail to properly handle one aspect or another of the C++ standard, just because C++ is such a complicated language.)

    When this happens, your main choices are to find another library, find another compiler, wait for a new and hopefully better version of C++Builder, or try and tweak the library to make it work.

    In this case, if you decide to try and make the library work, the following changes should get you started:

    • For the template version of `move_to` (line 9145 in CImg 1.3.4), C++Builder fails to detect t as a template parameter to the `move_to` parameter. Change the function declaration from its current type-safe version:
          template<typename t>
          CImg<t>& move_to(CImg<t>& img) {
      

      to the simpler

          template<typename t>
          t& move_to(t& image) {
      
    • Help C++Builder figure out the proper template parameters for the draw_text call on line 39163: replace draw_text(...) with draw_text<unsigned char,unsigned char>(...).

    There are more compiler errors than just these two; you’ll have to similarly adjust the CImg source code for those.

    If you’re able to get everything working, then once you’re done, you can see if the CImg project is interested in incorporating your changes to add C++Builder support to their official release.

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

Sidebar

Related Questions

I wish to use xml and xsl to generate controls on an asp.net page.
I wish to use the Validating event on a label in VB.Net (Visual Studio
I wish to use the Tomcat install/deploy tasks from catalina-ant.jar to deploy a webapp
When you have parent-child tables and you wish to use a DetailsView to edit
I'm writing a windows C# application which I wish to use data grid views,
Assume I have a class foo, and wish to use a std::map to store
I wish to know all the pros and cons about using these two methods.
I wish Subversion had a better way of moving tags. The only way that
I wish to implement a 2d bit map class in Python. The class would
I wish to implement my software on a shareware basis, so that the 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.