help me pls figure out bout this code!!

1
2
3
4
5
6
7
8
9
#include "ccc_win.h"

int ccc_win_main()
{  
   Point p(1, 3);
   cwin << p << Circle(p, 2.5);

   return 0;
}


it appear this errors:

1
2
3
4
5
6
7
  [Linker error] undefined reference to `Point::Point(double, double)' 
  [Linker error] undefined reference to `Circle::Circle(Point, double)' 
  [Linker error] undefined reference to `cwin' 
  [Linker error] undefined reference to `GraphicWindow::operator<<(Point)' 
  [Linker error] undefined reference to `GraphicWindow::operator<<(Circle)' 
  [Linker error] undefined reference to `WinMain@16' 
  ld returned 1 exit status 


can you please help me fixed this
Last edited on
The problem is not with your code, but with your linker settings. You probably need to tell the linker to include the library where you found "ccc_win.h".

How to do this depends on your environment.
if i dont have the c header file and c++ source file of cc_win.h

nothing i can do, right?
help me pls i tried to include the linker and only one error remain this one

C:\Documents and Settings\jeroldsenatin\Desktop\Makefile.win [Build Error] ["New Folder (2)/cccfiles/ccc_shap.o"] Error 1
I finally get no more error compiler has finally says done
but another error comes up
when i try clicking run it says Source file not compiled
i tried the other one compile & run and what comes up

an empty window with a title "Windows App"
the color of its text body is somekind or rather of a gray color

still i have not completed the creation of a new project???
Last edited on
You haven't given any information about what IDE you are using. You should, so that people who know it better can help you.
you mean the virsion of my C++

Im using bloodshed software 4.9.9.2
Looks pretty nice. Never tried it though. Hopefully someone who knows that program will be able to help you.
Topic archived. No new replies allowed.