I use the Visual C++ 2005 Express Edition and I want to implement a
simple c++ programm which has a header file and a implementation file.
the header file:
Expand|Select|Wrap|Line Numbers
- #include <iostream>
- namespace main_savitch_2C
- {
- class statistician
- {
- public:
- void next(double r);
- private:
- int count;
- };
- }
Expand|Select|Wrap|Line Numbers
- #include "stats.h"
- using namespace main_savitch_2C;
- void statistician::next(double r)
- {
- }
occurs:
------ Build started: Project: Test, Configuration: Debug Win32 ------
Compiling...
statsimpl.cpp
Linking...
msvcrtd.lib(crtexe.obj) : error LNK2019: unresolved external symbol
_main referenced in function ___tmainCRTStartup
C:\Dokumente und Einstellungen\Patrick\Eigene Dateien\Visual Studio
2005\Projects\Assignment4\Debug\Assignment4.exe : fatal error LNK1120:
1 unresolved externals
Build log was saved at "file://c:\Dokumente und
Einstellungen\matti\Eigene Dateien\Visual Studio
2005\Projects\Assignment4\Assignment4\Debug\BuildL og.htm"
Assignment4 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
I look for the error for many hours but I simply do not find how I can
fix it :( Does anybody know here how I can fix this error?? :((
Regards