Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re:Graphics in Microsoft Visaul c++ 6.0

Status
Not open for further replies.

kwasib

Programmer
May 23, 2004
8
US
This is the error i get when i tried to build a simple program that just draws a single point. Can i get some help now.

Linking...
point.obj : error LNK2001: unresolved external symbol "public: class GraphicWindow & __thiscall GraphicWindow::eek:perator<<(class Point)" (??6GraphicWindow@@QAEAAV0@VPoint@@@Z)
point.obj : error LNK2001: unresolved external symbol "class GraphicWindow cwin" (?cwin@@3VGraphicWindow@@A)
point.obj : error LNK2001: unresolved external symbol "public: __thiscall Point::point(double,double)" (??0Point@@QAE@NN@Z)
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/ne.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
 
post re:xxx only in the thread you have started. No one know what is current thread about.

Ion Filipski
1c.bmp
 
The error sayd it cant find the implementation of your
Code:
GraphicWindow& GraphicWindow::operator<<(class Point);

So, 3 questions comes to mind:
1) What does its implementation really look like?
2) Where is it implemented
3) What does the code calling the operator look like

the same questions goes for the other errors as well...

>Can i get some help now.

Yes, if you promise not to create new threads for the same question over and over. Post you replies in the box below on this page.

/Per
[sub]
&quot;It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure.&quot;[/sub]
 
okay am not sure how to answer your questions but this is the code i wanted to compile

#include "ccc_win.h"

int ccc_win_main()
{
cwin << Point(1, 3);
return 0;
}
 
Is Ok if cwin is an existing instance some window class and you have implemented correctly the operator <<

Ion Filipski
1c.bmp
 
i think that my problem has to do with including files in my developer studio. i think that i can't not include the files properly.
 
Well, since CCC doesnt seem to be an external library I assume you should add all its files to your project, ie the h/cpp files for Point, GraphicWindow, ccc_win.h/.cpp.

So regarding the question #2 I posted above - where is it implemented - the file that implements it (and the other things) should be added to your project.

For what I can tell from a quick glance - the whole CCC thing doesn't seem to be one of the better tutorials of C++...

/Per
[sub]
&quot;It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure.&quot;[/sub]
 
it works, it works, it works, it works,it works, it works, it works, it works, i can now write my programs now. Thanks a lot for all the help.

 
Cool, what was the problem?

/Per
[sub]
&quot;It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure.&quot;[/sub]
 
i had to add all the h/cpp files to my project and some of the files had the namespace std thing missing or not at the right place so i had to take care of that. hey thanks a lot for all the help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top