Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dll issue, not finding functions in linker

Status
Not open for further replies.

Wings

Programmer
Feb 14, 2002
247
US
Hello,

I have created a dll and tried to include it in another project, and when I write the code such as
//CSerialControlApp being my dll class

CSerialControlApp *SC;
SC->

the pointer produces a list of the functions in the dll, so it can access those. But when I go to build it, I get a linker error(LNK2019) which states that it is an unresolved external. What am I doing wrong?

Thanks
 
the pointer produces a list of the functions in the dll

You mean, you see a popup-list when you type the characters SC->

This doesn't mean the linker can read the DLL.
All that means is that VC++'s tags browser is looking up your class declaration.

Make sure that all symbols are marked for __declspec (dllexport) when building the library, and marked for __declspec (dllimport) when linking against it.

Also, of course, be sure you've added your export library to your project's "Object/library modules" settings.

[sub]I REALLY hope that helps.[/sub]
Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top