c++ - Undefined Symbols -


Image class is a sub class of BMP class. I am trying to use some methods from BMP Class to manipulate the image in this method, Tailheit (), Televise () etc. However, when I try to make a BMP and call the function on it, I

the undefined symbol:

BMP :: BMP From:
Image: invertcolors ()

This method is inworld color ():

  zero image :: invertcolors () {BMP img_invert ; Img_invert.ReadFromFile ("inverted.bmp"); // acute height = img_invert.TellHeight (); // Intensity width = img_invert.TellWidth (); // for (int i = 0; i & lt; height; i ++) for // {// (int j = 0; j & lt; width; j ++) // {// RGBApixel * current = Img_invert (j, i); // current-gt; Blue = 255 - (current-> blue); // current-> Green = 255 - (current-> green); // current-> Red = 255 - (current-> red); // current-> Alpha = 255 - (current-> alpha); Undefined symbol is a link time error when you use your binary If you are adding, you have to link to the compiled code that defines that function.  

If BMP is part of an external library, then you will need to add something to your link line like this:

  -L / path / to / lib - Lbmp  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -