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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to link a .lib ?

Status
Not open for further replies.

zikar

Programmer
Oct 10, 2000
31
JP
Hello,

My question is certainly basic. But what I have tried out did not work so I have to ask.

I have made a library called myllx.lib and I cannot link my program with it.
I always get this kind of messages :
[Linker Error] Unresolved external 'myClass::myClass(short, short, short, short, short, short, GridType)' referenced from D:\myDir\MyProg.OBJ
[Linker Error] Unresolved external 'myClass::Draw(Graphics::TCanvas *, char *)' referenced from D:\myDir\MyProg.OBJ

I have set the lib path in the project options, but this is obviously not enough. Can any body tell me what else I have to do ?

Is there something else to set or some thing to change in the source of the program. When I was using exactly the same code, compiling every file and linking all the objects I had no problem. Things start to go wrong if I want to take away some source file and put them in a lib.

Thanks.

Michel
[sig][/sig]
 
Try implib utility and add its output file to your project! maybe it works!


Hope it helps you !


[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top