help me pls figure out bout this code!!

Mar 11, 2008 at 7:08pm
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 Mar 11, 2008 at 7:12pm
Mar 11, 2008 at 7:18pm
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.
Mar 11, 2008 at 7:34pm
if i dont have the c header file and c++ source file of cc_win.h

nothing i can do, right?
Mar 11, 2008 at 8:10pm
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
Mar 11, 2008 at 8:24pm
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 Mar 11, 2008 at 8:26pm
Mar 11, 2008 at 9:29pm
You haven't given any information about what IDE you are using. You should, so that people who know it better can help you.
Mar 12, 2008 at 12:06pm
you mean the virsion of my C++

Im using bloodshed software 4.9.9.2
Mar 12, 2008 at 1:16pm
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.