hello,
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:
and the implementation file which contains now only the definitions:
But when I try to compile this very simple program, the following error
occurs:
------ Build started: Project: Test, Configuration: Debug Win32 ------
Compiling...
statsimpl.cpp
Linking...
msvcrtd.lib(crt exe.obj) : error LNK2019: unresolved external symbol
_main referenced in function ___tmainCRTStar tup
C:\Dokumente und Einstellungen\P atrick\Eigene Dateien\Visual Studio
2005\Projects\A ssignment4\Debu g\Assignment4.e xe : fatal error LNK1120:
1 unresolved externals
Build log was saved at "file://c:\Dokumente und
Einstellungen\m atti\Eigene Dateien\Visual Studio
2005\Projects\A ssignment4\Assi gnment4\Debug\B uildLog.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
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:
Code:
#include <iostream>
namespace main_savitch_2C
{
class statistician
{
public:
void next(double r);
private:
int count;
};
}
Code:
#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(crt exe.obj) : error LNK2019: unresolved external symbol
_main referenced in function ___tmainCRTStar tup
C:\Dokumente und Einstellungen\P atrick\Eigene Dateien\Visual Studio
2005\Projects\A ssignment4\Debu g\Assignment4.e xe : fatal error LNK1120:
1 unresolved externals
Build log was saved at "file://c:\Dokumente und
Einstellungen\m atti\Eigene Dateien\Visual Studio
2005\Projects\A ssignment4\Assi gnment4\Debug\B uildLog.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
Comment