Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.
I have a problem.
I included ximage.h and try to compile

C#
CxImage  image;
     image.Load("C:\\screen.bmp", CXIMAGE_FORMAT_BMP);
if (image.IsValid()){
    if(!image.IsGrayScale()) image.IncreaseBpp(24);
    image.SetJpegQuality(80);
    image.Save("C:\\screen.jpg",CXIMAGE_FORMAT_JPG);


there is a lot of LINKER ERROR.
One of them:
[Linker error] undefined reference to `CxImage::CxImage(unsigned long)'

How to compile it?
I dont know how to add CxImage to linker.
Please HELP!
Posted

to do it in visual studio, add the lib into:
Project->Properties->Configuration Properties->Linker->Additional Dependencies
 
Share this answer
 
there should be a project options area somewhere to add libraries or objects, i can tell you exactly how to get to it in studio, unfortunately not sure where it is exactly in Dev...

i've heard nothing good about Dev btw...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900