Sign in to follow this  
tBoai

link error 2019 why? give me some tip pleaase

Recommended Posts

linking... welcome_service.obj : error LNK2019: welcome_service.obj : error LNK2019: welcome_service.obj : error LNK2019: welcome_service.obj : error LNK2019: welcome_service.obj : error LNK2019: welcome_service.obj : error LNK2019: .\ReleaseDebug/welcome_service.exe : fatal error LNK1120: 6

Share this post


Link to post
Share on other sites
Externals are functions in other parts of your program (either other source files, or other libraries (.lib or .dll files)). That linker error means that the linker can't find one or more functions that were referenced. What are the full errors? That'll tell you what functions it can't find, and we might be able to work out what librar(y|ies) you need to link in.

Share this post


Link to post
Share on other sites
What Steve was saying is that you haven't got a Source File linked in your project, or you haven't got a library linked into your project.

You are probably including a header file for some functions that are contained within a library or another source file, that the linker cannot find because it is not ... linked ... with the current project or build.

Share this post


Link to post
Share on other sites
What compiler/linker are you using? That alone would help a bit more... By the looks of it, it's a Microsoft compiler/linker. However, all the MS linkers gave much bigger error messages than just LNK2019.

Paste the entire>(That is, all the error text) error message.

Toolmaker

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this