Help: link error

M

Mr X

I am getting link errors and don't understand why:

- ClientClass is in Project A

- NoLinkCalledClass is in Project B

- Project A depends on project B

- NoLinkCalledClass::NoLinkCalledClass is defined in
NoLinkCalledClass.cpp

- Project B builds ok and makes NoLinkCalledClass.obj in the
appropriate directory

- YesLinkCalledClass is also in Project B, and ClientClass can link to
this ok.

- I have cleaned before building

The error is LNK2019 (from MS Studio.NET) against the NoLinkCalledClass
ctor.

What else can I do to pinpoint this error?????
 
V

Victor Bazarov

Mr said:
I am getting link errors and don't understand why:

- ClientClass is in Project A

- NoLinkCalledClass is in Project B

- Project A depends on project B

- NoLinkCalledClass::NoLinkCalledClass is defined in
NoLinkCalledClass.cpp

- Project B builds ok and makes NoLinkCalledClass.obj in the
appropriate directory

- YesLinkCalledClass is also in Project B, and ClientClass can link to
this ok.

- I have cleaned before building

The error is LNK2019 (from MS Studio.NET) against the
NoLinkCalledClass ctor.

What else can I do to pinpoint this error?????

Make sure Project A has 'NoLinkCalledClass.obj' in its link input.

Next time ask about linking errors and how to set up your projects
in the newsgroup for your compiler because they are off-topic here.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,507
Members
48,193
Latest member
DannyRober

Latest Threads

Top