Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have been try many time to resolve this Error. but still I am not able to solve this problem.

there is not problem form Linker<system or="" advanced<b="">.

the problem come form Linker<input<b>.

I am not able to resolve the Error.

Thank you..

What I have tried:

problem form Linker<system< b=""> or advanced.
Posted
Updated 10-Mar-22 8:07am
v2
Comments
RedDk 10-Mar-22 14:10pm    
For starters and since there's really a lack of detail about how you arrived at this barricade going down the road in VS, click on the "Help" button on the main menu and under the Index tab in the search box type "LNK2001". You should see a list of prefixes "LNK", followed by four digits, the length of which is greater than your arm and hand with extended finger combined.

We cannot fix this for you: we do not have access to your code, and you need this to fix it.
LNK2001 and LNK1120 are both concerned with undefined symbols: your code is referring to a symbol which can't be found in the object files or libraries you are linking together.
Linker Tools Error LNK2001 | Microsoft Docs[^]
Linker tools error LNK1120 | Microsoft Docs[^]
The error messages themselves contain the name of the symbol - and we can't even see that, much less the code that tries to reference them, or the list of files that you are trying to link together.

So start with the error message, look at your code, and try to work out where it should be declared.

Sorry, but we can't do any of that for you!
 
Share this answer
 
Comments
Vishalport 10-Mar-22 15:06pm    
yeah sure.
let me know you that, whenever just run any of the code, Error comes under.


there is simple code but still the Linker Error is coming.

using namespace System;
using namespace System::Windows::Forms;

[STAThreadAttribute]
void Main(array<string^>^ args) {
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
//WinformCDemo is your project name
WinformCDemo::MyForm form;
Application::Run(%form);
}


Actually my Linker is reset so help me configure.
OriginalGriff 10-Mar-22 15:50pm    
At the risk of repeating myself: "So start with the error message, look at your code, and try to work out where it should be declared."
Without seeing your code, it's impossible to answer other than to say that you're using a symbol that's still undefined after all your code is linked.

Linker tools error LNK1120 | Microsoft Docs[^]
Linker Tools Error LNK2001 | Microsoft Docs[^]
 
Share this answer
 
Comments
Vishalport 10-Mar-22 15:07pm    
yeah sure.
let me know you that, whenever just run any of the code, Error comes under.


there is simple code but still the Linker Error is coming.

using namespace System;
using namespace System::Windows::Forms;

[STAThreadAttribute]
void Main(array<string^>^ args) {
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
//WinformCDemo is your project name
WinformCDemo::MyForm form;
Application::Run(%form);
}


Actually my Linker is reset so help me configure.
Greg Utas 10-Mar-22 16:11pm    
All this is Windows-specific. I use very little Windows stuff in my C++ code, and none of what you're using. You have to make sure that you've set up your Properties file to include the libraries that define these namespaces.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900