954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Link Error 2001 and fatal error 1120

I am building a dll file. when i try to compile the dll file i get the following errors...
help me am new to vc++... tool used is visual studio 6.0


GPPSCOM.OBJ : error LNK2001: unresolved external symbol "double __cdecl RoundDown(double,int)" (?RoundDown@@YANNH@Z)
GPPSCOM.OBJ : error LNK2001: unresolved external symbol "double __cdecl ADue(double,double,int)" (?ADue@@YANNNH@Z)
GPPOC.OBJ : error LNK2001: unresolved external symbol _Ctl3dSubclassDlg@8
Debug/GPPSCOMDLL.dll : fatal error LNK1120:

am new to this... help me

kumarmpk4u
Light Poster
33 posts since Mar 2011
Reputation Points: 15
Solved Threads: 0
 

Have you written the implementations for the functions? Simply declaring, but forgetting to write, the functions is the most common cause for that type of Linker error.

Also, if you have, make sure the *.cpp file that you implemented them in is included in your project.

The error basically says "I know this function should exist, and you've tried to use it, but I can't find it so I don't know how it works."

Fbody
Posting Maven
2,930 posts since Oct 2009
Reputation Points: 833
Solved Threads: 393
 

the above error was solved by adding the library files.

now got a new set of linker 2001 errors. i tried to build a exe file. I placed the required lib files and linked those lib files in my project. When i tried to compile still getting the linker error. Is ther some changes to be madt to the dll file used as linker.

Since i use a mfc extension dll it creates the lib files to be added at the compilation time. Still i get the linking errors. I am usind vc++ 6.0.

could you guide me how to take up this linking errors.

kumarmpk4u
Light Poster
33 posts since Mar 2011
Reputation Points: 15
Solved Threads: 0
 

Just copying the lib files into your project directory doesn't solve a thing. You have to add the lib names to the project settings. Its been a long time since I used that version of the compiler and don't recall how to do that.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

ya i did add the names to the libraries to be used, still having some problems in linking... i dont know what went wrong

kumarmpk4u
Light Poster
33 posts since Mar 2011
Reputation Points: 15
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You