It looks like WritePaths
has not been implemented. I don't see anything wrong with the declaration, but if you declare the method and don't actually implement it, this is the linker error you should get. If you do have an implementation in your .cpp file, please post it.
Error unresolved token (06000001) LNK2020 in Visual c++
-
29-06-2023 - |
Frage
Hi I keep getting this error message when I create a new class:
error LNK2020: unresolved token (06000001) write_functions::WritePaths
error LNK1120: 1 unresolved externals
The class .h file looks like this:
#pragma once
#include <string>
#include <utility>
#include <fstream>
#include <sstream>
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
ref class write_functions
{
public:
private:
std::pair<bool,std::string> WritePaths(System::Windows::Forms::RichTextBox^ Box);
};
I have made other classes that look similar to this, they work just fine so I don't know why I get this error all of a sudden.
Can anybody help me?
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow