Unresolved External Symbol Error

Solved. Due to protect my code from plagiarism.
Last edited on
You never define bodies for TestBed's execute and setAlgorithm functions.

Instead, you are defining two global functions with the same name.


You forgot to give those functions the proper scope:

1
2
3
4
5
6
7
8
9
10
11
/*SelectionAlgorithm * algorithm;  // <- these probably should not be global
AlgorithmSortAll * all;   // they probably should be members of TestBed
AlgorithmSortK * toKey;*/

//..

void TestBed::setAlgorithm(int type, int k) {  // <- note the 'TestBed::'

//..

void TestBed::execute() // <- note the 'TestBed::' 
Thank you I did it but I have another error now. Unhandled Exception.

1
2
First-chance exception at 0x00a22aff in HW1.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x774e15de (ntdll.dll) in HW1.exe: 0xC0000005: Access violation reading location 0x00000000.
Last edited on
Topic archived. No new replies allowed.