Unresolved External Symbol Error

Oct 12, 2014 at 2:45pm
Solved. Due to protect my code from plagiarism.
Last edited on Nov 22, 2014 at 11:38pm
Oct 12, 2014 at 2:54pm
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::' 
Oct 12, 2014 at 3:07pm
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 Oct 12, 2014 at 4:17pm
Topic archived. No new replies allowed.