Static Library linking problems in Visual C++

I have compiled a static library called vlib.lib,  V is a GUI framework:
http://www.objectcentral.com/objectcentral/index.html
It is used by ponyprog wich is an open source program i would like to modify.
www.lancos.com/prog.html

I have compiled the vlib.lib static library without problems.
However when i recompile the ponyprog program i get errors in the linking stage of the type unresolved externals. The functions it complains about are included in the .cpp files that make up the library.
ie:
1>E2dlg.obj : error LNK2019: unresolved external symbol "public: __thiscall vDialog::vDialog(class vBaseWindow *,int,char *)" (??0vDialog@@QAE@PAVvBaseWindow@@HPAD@Z) referenced in function "public: __thiscall e2ProgressDialog::e2ProgressDialog(class vBaseWindow *,char *)" (??0e2ProgressDialog@@QAE@PAVvBaseWindow@@PAD@Z)

Is defined in vdialog.cpp
//===================>>> vDialog::vDialog <<<=======================
  vDialog::vDialog(const vDialog& d) : vBaseWindow(d),
    vCmdParent(P_Dialog)
  {
    vSysError("vDialog - V semantics do not support copy constructors!");
    _oldModal = 0;            // V:1.13
  }


I am new to Visual C++, but i've followed the instruction in various pages ie:
http://msdn.microsoft.com/en-us/library/ms235627.aspx
to build and use the library and can't see what i'm doing wrong. (Note i have not being able to compile the vlib.lib using precompiled headers)

Thanks for your help
Eduardo

ealdazAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ZoppoCommented:
Hi ealdaz,

did you set the .lib to be linked into the program? This can be done via dependencies (if both projects belong to same workspace) or by adding the 'vlib.lib' in the linker's 'Input' option 'Additional dependencies'.

ZOPPO
0
ealdazAuthor Commented:
Hi Zoppo

Yes iI have added both projects to the same solution (I'm using Visual C++ 2008 Express Edition) and i have added vlib.lib in the linkers input option.

I do get the feeling that somehow it is not getting linked. When i open with a text editor vlib.lib i can find references to vDialog::vDialog so it does seem to be there...

I must be missing something obvious but no idea what it could be
0
ZoppoCommented:
Hm - maybe the function calling conventions differ between the projects. If so I think the name expected in the lib is different from the name of the function in the lib.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ealdazAuthor Commented:
OK, so i have found what i was doing wrong, i was using the headers from the previous version of V without realising. THe classes are the same but obviously not what was needed!
Thanks again
Eduardo
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.