|
-
December 24th, 2006, 08:16 PM
#1
Question about Ezwindow
Hi there, I'm pretty new to C++ and I'm not sure why my ezwindow code would not work, would be nice if someone point out the problem. I'm currently using Visual Studio 2005 and I read something about setting the path of my include folder in preprocessor under project settings(not in VS2005).
The code:
#include <iostream>
#include <string>
#include "ezwin.h"
using namespace std;
int main() {
string name;
cout << "what is ur name? ";
cin >> name;
cout << "Die scum!" << name << endl;
SimpleWindow W;
W.Open();
return 0;
}
and the error:
1>------ Build started: Project: test2, Configuration: Debug Win32 ------
1>Compiling...
1>test2.cpp
1>Linking...
1>test2.obj : error LNK2019: unresolved external symbol "public: __thiscall SimpleWindow::~SimpleWindow(void)" (??1SimpleWindow@@QAE@XZ) referenced in function _main
1>test2.obj : error LNK2019: unresolved external symbol "public: enum WindowStatus __thiscall SimpleWindow::Open(void)" (?Open@SimpleWindow@@QAE?AW4WindowStatus@@XZ) referenced in function _main
1>test2.obj : error LNK2019: unresolved external symbol "public: __thiscall SimpleWindow::SimpleWindow(char const *,float,float,class Position const &)" (??0SimpleWindow@@QAE@PBDMMABVPosition@@@Z) referenced in function _main
1>test2.obj : error LNK2019: unresolved external symbol "public: __thiscall Position::Position(float,float)" (??0Position@@QAE@MM@Z) referenced in function _main
1>C:\Documents and Settings\Julius\My Documents\Visual Studio 2005\Projects\test2\Debug\test2.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Julius\My Documents\Visual Studio 2005\Projects\test2\Debug\BuildLog.htm"
1>test2 - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|