Linker Error?

My program won't compile.. Its getting error LNK2019 and LNK1120 unresolved externals. Can someone help me? Heres my code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef BIGINT_H
#define BIGINT_H

const int MAXINT = 500;

class bigint{
	public:
		bigint();
		bigint(const int value);
		
	private:
		int value[MAXINT];
};

#endif 


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include "bigint.h"

bigint::bigint(){
	
	for(int i=0; i <= MAXINT; i++)
		value[i] = 0;
}

bigint::bigint(int digit){

	int numdigits = log10((double)digit) + 1;

	for (int i=numdigits-1; i >= 0; i--)
	{
		value[i] = digit%10;
		digit /= 10;
	}
}
Last edited on
Please post the full text of the error messages.

Error 3 error LNK1120: 1 unresolved externals
Error 2 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup \
I did that and it still didn't solve the problem.. It still has the same error.
Topic archived. No new replies allowed.