Please Solve This Error For Me

Please Solve This Error For Me

Post by navapo » Mon, 10 Jul 2000 04:00:00



This is a source code :
#include <iostream>
using namespace std;

double power(double x, int n);

int main (void)
{       int index = 3;
        double x = 3.0;
        double y = 0.0;

        y = power(5.0, 3);
        cout << endl
                 << "5.0 cubed = " << y;

        cout << endl
                 << "3.0 cubed = "
                 << power(3.0, index);

        x = power(x, power(2.0, 2.0));
        cout << endl
                 << "x = " << x;

        cout << endl;
        return 0;

Quote:}

double power(double x, int n)
{       double result = 1.0;
        for(int i = 1; i <= n; i++)
                result *= x;
        return result;
Quote:}

and this is  error :
--------------------Configuration: Function1 - Win32
Debug--------------------
Compiling...
func.cpp
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol

Debug/Function1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Function1.exe - 2 error(s), 0 warning(s)

 
 
 

Please Solve This Error For Me

Post by navapo » Mon, 10 Jul 2000 04:00:00


OS: windows 2000 pro
Visual Studio 6 with service pack 4 Please help me

 
 
 

Please Solve This Error For Me

Post by Ian McQuad » Tue, 11 Jul 2000 04:00:00


You're using the WIN32/Windows application style project workspace rather
than the Console app. project workspace, so the compiler is looking for
WinMain(...) as the executable's entry point. Try compiling the code under a
console application workspace instead.

cheers
Ian McQuade


> This is a source code :
> #include <iostream>
> using namespace std;

> double power(double x, int n);

> int main (void)
> { int index = 3;
> double x = 3.0;
> double y = 0.0;

> y = power(5.0, 3);
> cout << endl
> << "5.0 cubed = " << y;

> cout << endl
> << "3.0 cubed = "
> << power(3.0, index);

> x = power(x, power(2.0, 2.0));
> cout << endl
> << "x = " << x;

> cout << endl;
> return 0;
> }

> double power(double x, int n)
> { double result = 1.0;
> for(int i = 1; i <= n; i++)
> result *= x;
> return result;
> }
> and this is  error :
> --------------------Configuration: Function1 - Win32
> Debug--------------------
> Compiling...
> func.cpp
> Linking...
> LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol

> Debug/Function1.exe : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe.

> Function1.exe - 2 error(s), 0 warning(s)

 
 
 

1. can anyone please educate me how to solve this error?

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.

Exception Details: System.NullReferenceException: Object
reference not set to an instance of an object.

Source Error:

Line 57:                private void InitializeComponent()
Line 58:                {    
Line 59:                        this.btnSave.Click += new
System.EventHandler(this.btnSave_Click);
Line 60:                        this.Load += new
System.EventHandler(this.Page_Load);
Line 61:

2. 827 ADSL connection unreliable

3. Fwd: Please solve this error

4. Employment Opportunity: Telecommunication Positions

5. please solve my problem

6. a leeetle problem...

7. please solve this issue

8. sync

9. Mapped devel drive problem - Re-solve this please!?

10. Please Solve My Problem

11. Please solve this problem for me

12. Need help for solving an Access Denied error for a Web Application

13. A generic error occurred in GDI+ - Solved!